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

Public Member Functions

override bool CanReadProperty (Csla.Core.IPropertyInfo propertyName)
 
override bool CanWriteProperty (Csla.Core.IPropertyInfo propertyName)
 
- Public Member Functions inherited from Csla.BusinessBase< EditablePerson >
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 EditablePerson GetEditablePerson ()
 
static EditablePerson GetEditablePerson (int authLevel)
 
static EditablePerson NewEditablePerson ()
 

Static Public Attributes

static readonly PropertyInfo< string > FirstNameProperty = RegisterProperty<string>(c => c.FirstName)
 
static readonly PropertyInfo< string > LastNameProperty = RegisterProperty<string>(c => c.LastName, "Last name")
 
static readonly PropertyInfo< string > MiddleNameProperty = RegisterProperty(new PropertyInfo<string>("MiddleName"))
 
static readonly PropertyInfo< string > PlaceOfBirthProperty = RegisterProperty(new PropertyInfo<string>("PlaceOfBirth"))
 
static readonly PropertyInfo< int > AuthLevelProperty = RegisterProperty(new PropertyInfo<int>("AuthLevel"))
 

Protected Member Functions

override void OnPropertyChanged (Core.IPropertyInfo propertyInfo)
 
void DataPortal_Insert ()
 
void DataPortal_Update ()
 
- Protected Member Functions inherited from Csla.BusinessBase< EditablePerson >
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 FirstName [getset]
 
string LastName [getset]
 
string MiddleName [getset]
 
string PlaceOfBirth [getset]
 
int AuthLevel [getset]
 
- Properties inherited from Csla.BusinessBase< EditablePerson >
EventHandler< Csla.Core.SavedEventArgsSaved
 Event raised when an object has been saved. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from Csla.BusinessBase< EditablePerson >
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 22 of file EditablePerson.cs.

Member Function Documentation

◆ CanReadProperty()

override bool Csla.Test.Windows.EditablePerson.CanReadProperty ( Csla.Core.IPropertyInfo  propertyName)

Definition at line 87 of file EditablePerson.cs.

◆ CanWriteProperty()

override bool Csla.Test.Windows.EditablePerson.CanWriteProperty ( Csla.Core.IPropertyInfo  propertyName)

Definition at line 98 of file EditablePerson.cs.

◆ DataPortal_Insert()

void Csla.Test.Windows.EditablePerson.DataPortal_Insert ( )
protected

Definition at line 126 of file EditablePerson.cs.

◆ DataPortal_Update()

void Csla.Test.Windows.EditablePerson.DataPortal_Update ( )
protected

Definition at line 133 of file EditablePerson.cs.

◆ GetEditablePerson() [1/2]

static EditablePerson Csla.Test.Windows.EditablePerson.GetEditablePerson ( )
static

Definition at line 31 of file EditablePerson.cs.

◆ GetEditablePerson() [2/2]

static EditablePerson Csla.Test.Windows.EditablePerson.GetEditablePerson ( int  authLevel)
static

Definition at line 38 of file EditablePerson.cs.

◆ NewEditablePerson()

static EditablePerson Csla.Test.Windows.EditablePerson.NewEditablePerson ( )
static

Definition at line 46 of file EditablePerson.cs.

◆ OnPropertyChanged()

override void Csla.Test.Windows.EditablePerson.OnPropertyChanged ( Core.IPropertyInfo  propertyInfo)
protected

Definition at line 108 of file EditablePerson.cs.

Member Data Documentation

◆ AuthLevelProperty

readonly PropertyInfo<int> Csla.Test.Windows.EditablePerson.AuthLevelProperty = RegisterProperty(new PropertyInfo<int>("AuthLevel"))
static

Definition at line 80 of file EditablePerson.cs.

◆ FirstNameProperty

readonly PropertyInfo<string> Csla.Test.Windows.EditablePerson.FirstNameProperty = RegisterProperty<string>(c => c.FirstName)
static

Definition at line 51 of file EditablePerson.cs.

◆ LastNameProperty

readonly PropertyInfo<string> Csla.Test.Windows.EditablePerson.LastNameProperty = RegisterProperty<string>(c => c.LastName, "Last name")
static

Definition at line 59 of file EditablePerson.cs.

◆ MiddleNameProperty

readonly PropertyInfo<string> Csla.Test.Windows.EditablePerson.MiddleNameProperty = RegisterProperty(new PropertyInfo<string>("MiddleName"))
static

Definition at line 66 of file EditablePerson.cs.

◆ PlaceOfBirthProperty

readonly PropertyInfo<string> Csla.Test.Windows.EditablePerson.PlaceOfBirthProperty = RegisterProperty(new PropertyInfo<string>("PlaceOfBirth"))
static

Definition at line 73 of file EditablePerson.cs.

Property Documentation

◆ AuthLevel

int Csla.Test.Windows.EditablePerson.AuthLevel
getset

Definition at line 81 of file EditablePerson.cs.

◆ FirstName

string Csla.Test.Windows.EditablePerson.FirstName
getset

Definition at line 53 of file EditablePerson.cs.

◆ LastName

string Csla.Test.Windows.EditablePerson.LastName
getset

Definition at line 60 of file EditablePerson.cs.

◆ MiddleName

string Csla.Test.Windows.EditablePerson.MiddleName
getset

Definition at line 67 of file EditablePerson.cs.

◆ PlaceOfBirth

string Csla.Test.Windows.EditablePerson.PlaceOfBirth
getset

Definition at line 74 of file EditablePerson.cs.