CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Test.DataPortal.StronglyTypedDP Class Reference
Inheritance diagram for Csla.Test.DataPortal.StronglyTypedDP:
Csla.BusinessBase< StronglyTypedDP >

Classes

class  Criteria
 

Static Public Member Functions

static StronglyTypedDP NewStronglyTypedDP (IDataPortal< StronglyTypedDP > dataPortal)
 
static StronglyTypedDP GetStronglyTypedDP (int id, IDataPortal< StronglyTypedDP > dataPortal)
 
static void DeleteStronglyTypedDP (int id, IDataPortal< StronglyTypedDP > dataPortal)
 

Static Public Attributes

static PropertyInfo< int > IdProperty = RegisterProperty<int>(c => c.Id)
 
static PropertyInfo< string > DataProperty = RegisterProperty<string>(c => c.Data)
 

Protected Member Functions

void DataPortal_Create (StronglyTypedDP.Criteria criteria)
 
void DataPortal_Fetch (StronglyTypedDP.Criteria criteria)
 
void DataPortal_Insert ()
 
void DataPortal_Update ()
 
void DataPortal_DeleteSelf ()
 
void DataPortal_Delete (StronglyTypedDP.Criteria criteria)
 
- Protected Member Functions inherited from Csla.BusinessBase< StronglyTypedDP >
virtual object GetIdValue ()
 Override this method to return a unique identifying value for this object. More...
 
virtual async Task< T > SaveAsync (bool forceUpdate, object userState, bool isSync)
 Saves the object to the database. More...
 
virtual void OnSaved (T newObject, Exception e, object userState)
 Raises the Saved event, indicating that the object has been saved, and providing a reference to the new object instance. More...
 

Properties

int Id [getset]
 
string Data [getset]
 
- Properties inherited from Csla.BusinessBase< StronglyTypedDP >
EventHandler< Csla.Core.SavedEventArgsSaved
 Event raised when an object has been saved. More...
 

Additional Inherited Members

- Public Member Functions inherited from Csla.BusinessBase< StronglyTypedDP >
override string ToString ()
 Returns a text representation of this object by returning the GetIdValue value in text form. More...
 
Clone ()
 Creates a clone of the object. More...
 
Save ()
 Saves the object to the database. More...
 
Save (bool forceUpdate)
 Saves the object to the database, forcing IsNew to false and IsDirty to True. More...
 
async Task< T > SaveAsync ()
 Saves the object to the database. More...
 
async Task< T > SaveAsync (bool forceUpdate)
 Saves the object to the database. More...
 
async Task SaveAndMergeAsync ()
 Saves the object to the database, merging any resulting updates into the existing object graph. More...
 
async Task SaveAndMergeAsync (bool forceUpdate)
 Saves the object to the database, merging any resulting updates into the existing object graph. More...
 
- Static Protected Member Functions inherited from Csla.BusinessBase< StronglyTypedDP >
static PropertyInfo< P > RegisterProperty< P > (PropertyInfo< P > info)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, string friendlyName)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, string friendlyName, P defaultValue)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, P defaultValue)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (string propertyName, string friendlyName, P defaultValue, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static PropertyInfo< P > RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, P defaultValue, RelationshipTypes relationship)
 Indicates that the specified property belongs to the business object type. More...
 
static MethodInfo RegisterMethod (string methodName)
 Registers a method for use in Authorization. More...
 
static MethodInfo RegisterMethod (Expression< Action< T > > methodLambdaExpression)
 Registers a method for use in Authorization. More...
 

Detailed Description

Definition at line 15 of file StronglyTypedDP.cs.

Member Function Documentation

◆ DataPortal_Create()

void Csla.Test.DataPortal.StronglyTypedDP.DataPortal_Create ( StronglyTypedDP.Criteria  criteria)
protected

Definition at line 67 of file StronglyTypedDP.cs.

◆ DataPortal_Delete()

void Csla.Test.DataPortal.StronglyTypedDP.DataPortal_Delete ( StronglyTypedDP.Criteria  criteria)
protected

Definition at line 107 of file StronglyTypedDP.cs.

◆ DataPortal_DeleteSelf()

void Csla.Test.DataPortal.StronglyTypedDP.DataPortal_DeleteSelf ( )
protected

Definition at line 101 of file StronglyTypedDP.cs.

◆ DataPortal_Fetch()

void Csla.Test.DataPortal.StronglyTypedDP.DataPortal_Fetch ( StronglyTypedDP.Criteria  criteria)
protected

Definition at line 77 of file StronglyTypedDP.cs.

◆ DataPortal_Insert()

void Csla.Test.DataPortal.StronglyTypedDP.DataPortal_Insert ( )
protected

Definition at line 89 of file StronglyTypedDP.cs.

◆ DataPortal_Update()

void Csla.Test.DataPortal.StronglyTypedDP.DataPortal_Update ( )
protected

Definition at line 95 of file StronglyTypedDP.cs.

◆ DeleteStronglyTypedDP()

static void Csla.Test.DataPortal.StronglyTypedDP.DeleteStronglyTypedDP ( int  id,
IDataPortal< StronglyTypedDP dataPortal 
)
static

Definition at line 62 of file StronglyTypedDP.cs.

◆ GetStronglyTypedDP()

static StronglyTypedDP Csla.Test.DataPortal.StronglyTypedDP.GetStronglyTypedDP ( int  id,
IDataPortal< StronglyTypedDP dataPortal 
)
static

Definition at line 57 of file StronglyTypedDP.cs.

◆ NewStronglyTypedDP()

static StronglyTypedDP Csla.Test.DataPortal.StronglyTypedDP.NewStronglyTypedDP ( IDataPortal< StronglyTypedDP dataPortal)
static

Definition at line 52 of file StronglyTypedDP.cs.

Member Data Documentation

◆ DataProperty

PropertyInfo<string> Csla.Test.DataPortal.StronglyTypedDP.DataProperty = RegisterProperty<string>(c => c.Data)
static

Definition at line 24 of file StronglyTypedDP.cs.

◆ IdProperty

PropertyInfo<int> Csla.Test.DataPortal.StronglyTypedDP.IdProperty = RegisterProperty<int>(c => c.Id)
static

Definition at line 17 of file StronglyTypedDP.cs.

Property Documentation

◆ Data

string Csla.Test.DataPortal.StronglyTypedDP.Data
getset

Definition at line 25 of file StronglyTypedDP.cs.

◆ Id

int Csla.Test.DataPortal.StronglyTypedDP.Id
getset

Definition at line 18 of file StronglyTypedDP.cs.