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

Static Public Attributes

static PropertyInfo< int > IDProperty = RegisterProperty<int>(c => c.ID)
 
static PropertyInfo< string > FirstNameProperty = RegisterProperty<string>(c => c.FirstName)
 
static PropertyInfo< string > LastNameProperty = RegisterProperty<string>(c => c.LastName)
 

Protected Member Functions

override object GetIdValue ()
 Override this method to return a unique identifying value for this object. More...
 
override object GetIdValue ()
 Override this method to return a unique identifying value for this object. More...
 
- Protected Member Functions inherited from Csla.BusinessBase< ChildEntity >
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 [get]
 
string FirstName [getset]
 
string LastName [getset]
 
- Properties inherited from Csla.BusinessBase< ChildEntity >
EventHandler< Csla.Core.SavedEventArgsSaved
 Event raised when an object has been saved. More...
 

Additional Inherited Members

- Public Member Functions inherited from Csla.BusinessBase< ChildEntity >
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< ChildEntity >
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 csla.netcore.test/DataBinding/ChildEntity.cs.

Member Function Documentation

◆ GetIdValue() [1/2]

override object Csla.Test.DataBinding.ChildEntity.GetIdValue ( )
protectedvirtual

Override this method to return a unique identifying value for this object.

Reimplemented from Csla.BusinessBase< ChildEntity >.

Definition at line 48 of file csla.netcore.test/DataBinding/ChildEntity.cs.

◆ GetIdValue() [2/2]

override object Csla.Test.DataBinding.ChildEntity.GetIdValue ( )
protectedvirtual

Override this method to return a unique identifying value for this object.

Reimplemented from Csla.BusinessBase< ChildEntity >.

Definition at line 40 of file Csla.test/DataPortal/ChildEntity.cs.

Member Data Documentation

◆ FirstNameProperty

PropertyInfo<string> Csla.Test.DataBinding.ChildEntity.FirstNameProperty = RegisterProperty<string>(c => c.FirstName)
static

Definition at line 18 of file Csla.test/DataPortal/ChildEntity.cs.

◆ IDProperty

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

Definition at line 17 of file Csla.test/DataPortal/ChildEntity.cs.

◆ LastNameProperty

PropertyInfo<string> Csla.Test.DataBinding.ChildEntity.LastNameProperty = RegisterProperty<string>(c => c.LastName)
static

Definition at line 19 of file Csla.test/DataPortal/ChildEntity.cs.

Property Documentation

◆ FirstName

string Csla.Test.DataBinding.ChildEntity.FirstName
getset

Definition at line 26 of file csla.netcore.test/DataBinding/ChildEntity.cs.

◆ ID

int Csla.Test.DataBinding.ChildEntity.ID
get

Definition at line 21 of file csla.netcore.test/DataBinding/ChildEntity.cs.

◆ LastName

string Csla.Test.DataBinding.ChildEntity.LastName
getset

Definition at line 36 of file csla.netcore.test/DataBinding/ChildEntity.cs.