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.DataBinding.ParentEntity Class Reference
Inheritance diagram for Csla.Test.DataBinding.ParentEntity:
Csla.BusinessBase< ParentEntity > Csla.BusinessBase< ParentEntity >

Public Member Functions

 ParentEntity ()
 DO NOT USE in UI - use the factory method instead More...
 
 ParentEntity ()
 DO NOT USE in UI - use the factory method instead More...
 
- Public Member Functions inherited from Csla.BusinessBase< ParentEntity >
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 Public Member Functions

static ParentEntity NewParentEntity (IDataPortal< ParentEntity > dataPortal)
 
static ParentEntity GetParentEntity (int ID, IDataPortal< ParentEntity > dataPortal)
 
static void DeleteParentEntity (int ID, IDataPortal< ParentEntity > dataPortal)
 

Static Public Attributes

static PropertyInfo< int > IDProperty = RegisterProperty<int>(c => c.ID)
 
static PropertyInfo< string > DataProperty = RegisterProperty<string>(c => c.Data)
 
static PropertyInfo< ChildEntityListChildrenProperty = RegisterProperty<ChildEntityList>(p => p.Children)
 

Protected Member Functions

override void AddBusinessRules ()
 
void DataPortal_Create ([Inject] IChildDataPortal< ChildEntityList > dataPortal)
 
void DataPortal_Fetch (object criteria, [Inject] IChildDataPortal< ChildEntityList > dataPortal)
 
void DataPortal_Insert ()
 
void DataPortal_Update ()
 
void DataPortal_DeleteSelf ()
 
void DataPortal_Delete (object criteria)
 
override void AddBusinessRules ()
 
void DataPortal_Create ([Inject] IChildDataPortal< ChildEntityList > childDataPortal)
 
void DataPortal_Fetch (object criteria, [Inject] IChildDataPortal< ChildEntityList > childDataPortal)
 
void DataPortal_Insert ()
 
void DataPortal_Update ()
 
void DataPortal_DeleteSelf ()
 
void DataPortal_Delete (object criteria)
 
- Protected Member Functions inherited from Csla.BusinessBase< ParentEntity >
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

string NotUndoable [getset]
 
int ID [get]
 
string Data [getset]
 
ChildEntityList Children [get]
 
override bool IsDirty [get]
 
- Properties inherited from Csla.BusinessBase< ParentEntity >
EventHandler< Csla.Core.SavedEventArgsSaved
 Event raised when an object has been saved. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from Csla.BusinessBase< ParentEntity >
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

Constructor & Destructor Documentation

◆ ParentEntity() [1/2]

Csla.Test.DataBinding.ParentEntity.ParentEntity ( )

DO NOT USE in UI - use the factory method instead

<remaks> this constructor is public only to support web forms databinding /remaks>

Definition at line 74 of file csla.netcore.test/DataBinding/ParentEntity.cs.

◆ ParentEntity() [2/2]

Csla.Test.DataBinding.ParentEntity.ParentEntity ( )

DO NOT USE in UI - use the factory method instead

<remaks> this constructor is public only to support web forms databinding /remaks>

Definition at line 74 of file Csla.test/DataPortal/ParentEntity.cs.

Member Function Documentation

◆ AddBusinessRules() [1/2]

override void Csla.Test.DataBinding.ParentEntity.AddBusinessRules ( )
protected

◆ AddBusinessRules() [2/2]

override void Csla.Test.DataBinding.ParentEntity.AddBusinessRules ( )
protected

Definition at line 60 of file Csla.test/DataPortal/ParentEntity.cs.

◆ DataPortal_Create() [1/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_Create ( [Inject] IChildDataPortal< ChildEntityList childDataPortal)
protected

Definition at line 120 of file Csla.test/DataPortal/ParentEntity.cs.

◆ DataPortal_Create() [2/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_Create ( [Inject] IChildDataPortal< ChildEntityList dataPortal)
protected

◆ DataPortal_Delete() [1/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_Delete ( object  criteria)
protected

◆ DataPortal_Delete() [2/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_Delete ( object  criteria)
protected

Definition at line 164 of file Csla.test/DataPortal/ParentEntity.cs.

◆ DataPortal_DeleteSelf() [1/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_DeleteSelf ( )
protected

◆ DataPortal_DeleteSelf() [2/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_DeleteSelf ( )
protected

Definition at line 156 of file Csla.test/DataPortal/ParentEntity.cs.

◆ DataPortal_Fetch() [1/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_Fetch ( object  criteria,
[Inject] IChildDataPortal< ChildEntityList childDataPortal 
)
protected

Definition at line 130 of file Csla.test/DataPortal/ParentEntity.cs.

◆ DataPortal_Fetch() [2/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_Fetch ( object  criteria,
[Inject] IChildDataPortal< ChildEntityList dataPortal 
)
protected

◆ DataPortal_Insert() [1/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_Insert ( )
protected

◆ DataPortal_Insert() [2/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_Insert ( )
protected

Definition at line 140 of file Csla.test/DataPortal/ParentEntity.cs.

◆ DataPortal_Update() [1/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_Update ( )
protected

◆ DataPortal_Update() [2/2]

void Csla.Test.DataBinding.ParentEntity.DataPortal_Update ( )
protected

Definition at line 148 of file Csla.test/DataPortal/ParentEntity.cs.

◆ DeleteParentEntity()

static void Csla.Test.DataBinding.ParentEntity.DeleteParentEntity ( int  ID,
IDataPortal< ParentEntity dataPortal 
)
static

Definition at line 95 of file Csla.test/DataPortal/ParentEntity.cs.

◆ GetParentEntity()

static ParentEntity Csla.Test.DataBinding.ParentEntity.GetParentEntity ( int  ID,
IDataPortal< ParentEntity dataPortal 
)
static

Definition at line 90 of file Csla.test/DataPortal/ParentEntity.cs.

◆ NewParentEntity()

static ParentEntity Csla.Test.DataBinding.ParentEntity.NewParentEntity ( IDataPortal< ParentEntity dataPortal)
static

Definition at line 85 of file Csla.test/DataPortal/ParentEntity.cs.

Member Data Documentation

◆ ChildrenProperty

PropertyInfo<ChildEntityList> Csla.Test.DataBinding.ParentEntity.ChildrenProperty = RegisterProperty<ChildEntityList>(p => p.Children)
static

Definition at line 44 of file Csla.test/DataPortal/ParentEntity.cs.

◆ DataProperty

static PropertyInfo< string > Csla.Test.DataBinding.ParentEntity.DataProperty = RegisterProperty<string>(c => c.Data)
static

◆ IDProperty

static PropertyInfo< int > Csla.Test.DataBinding.ParentEntity.IDProperty = RegisterProperty<int>(c => c.ID)
static

Property Documentation

◆ Children

ChildEntityList Csla.Test.DataBinding.ParentEntity.Children
get

◆ Data

string Csla.Test.DataBinding.ParentEntity.Data
getset

◆ ID

int Csla.Test.DataBinding.ParentEntity.ID
get

◆ IsDirty

override bool Csla.Test.DataBinding.ParentEntity.IsDirty
get

◆ NotUndoable

string Csla.Test.DataBinding.ParentEntity.NotUndoable
getset