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.
cslalighttest.Serialization.Person Class Reference
Inheritance diagram for cslalighttest.Serialization.Person:
Csla.BusinessBase< Person >

Public Member Functions

DateTime GetBDate ()
 
- Public Member Functions inherited from Csla.BusinessBase< Person >
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 Attributes

static readonly PropertyInfo< string > NameProperty
 
static readonly PropertyInfo< DateTime > BirthdateProperty
 
static readonly PropertyInfo< AddressListAddressesProperty
 
static readonly PropertyInfo< AddressPrimaryAddressProperty
 

Properties

string Name [getset]
 
DateTime Birthdate [getset]
 
int Age [getset]
 
string Unserialized [getset]
 
AddressList Addresses [getset]
 
DateTimeOffset DtoDate [getset]
 
Address PrimaryAddress [getset]
 
- Properties inherited from Csla.BusinessBase< Person >
EventHandler< Csla.Core.SavedEventArgsSaved
 Event raised when an object has been saved. More...
 

Additional Inherited Members

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

Member Function Documentation

◆ GetBDate()

DateTime cslalighttest.Serialization.Person.GetBDate ( )

Definition at line 69 of file Person.cs.

Member Data Documentation

◆ AddressesProperty

readonly PropertyInfo<AddressList> cslalighttest.Serialization.Person.AddressesProperty
static
Initial value:
= RegisterProperty<AddressList>(
typeof(Person),
new PropertyInfo<AddressList>("Addresses"))

Definition at line 29 of file Person.cs.

◆ BirthdateProperty

readonly PropertyInfo<DateTime> cslalighttest.Serialization.Person.BirthdateProperty
static
Initial value:
= RegisterProperty<DateTime>(
typeof(Person),
new PropertyInfo<DateTime>("Birthdate"))

Definition at line 25 of file Person.cs.

◆ NameProperty

readonly PropertyInfo<string> cslalighttest.Serialization.Person.NameProperty
static
Initial value:
= RegisterProperty<string>(
typeof(Person),
new PropertyInfo<string>("Name"))

Definition at line 21 of file Person.cs.

◆ PrimaryAddressProperty

readonly PropertyInfo<Address> cslalighttest.Serialization.Person.PrimaryAddressProperty
static
Initial value:
= RegisterProperty<Address>(
typeof(Person),
new PropertyInfo<Address>("PrimaryAddress"))

Definition at line 33 of file Person.cs.

Property Documentation

◆ Addresses

AddressList cslalighttest.Serialization.Person.Addresses
getset

Definition at line 63 of file Person.cs.

◆ Age

int cslalighttest.Serialization.Person.Age
getset

Definition at line 49 of file Person.cs.

◆ Birthdate

DateTime cslalighttest.Serialization.Person.Birthdate
getset

Definition at line 43 of file Person.cs.

◆ DtoDate

DateTimeOffset cslalighttest.Serialization.Person.DtoDate
getset

Definition at line 75 of file Person.cs.

◆ Name

string cslalighttest.Serialization.Person.Name
getset

Definition at line 37 of file Person.cs.

◆ PrimaryAddress

Address cslalighttest.Serialization.Person.PrimaryAddress
getset

Definition at line 81 of file Person.cs.

◆ Unserialized

string cslalighttest.Serialization.Person.Unserialized
getset

Definition at line 57 of file Person.cs.