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

Static Public Member Functions

static PropertyInfoRoot NewPropertyInfoRoot (IDataPortal< PropertyInfoRoot > dataPortal)
 

Static Public Attributes

static readonly PropertyInfo< System.String > _nameProperty = RegisterProperty<System.String>(p => p.Name)
 Note: We exposed the PropertyInfo's so we can test it... More...
 
static readonly PropertyInfo< System.String > _nameDataAnnotationsProperty = RegisterProperty<System.String>(p => p.NameDataAnnotations)
 
static readonly PropertyInfo< System.String > _nameComponentModelProperty = RegisterProperty<System.String>(p => p.NameComponentModel)
 
static readonly PropertyInfo< System.String > _nameFriendlyNameProperty = RegisterProperty<System.String>(p => p.NameFriendlyName, "Name: Friendly Name")
 
static readonly PropertyInfo< string > NameDefaultValueProperty = RegisterProperty<string>(c => c.NameDefaultValue, string.Empty, "x")
 
static readonly PropertyInfo< string > StringNullDefaultValueProperty = RegisterProperty<string>(c => c.StringNullDefaultValue, string.Empty, null)
 

Protected Member Functions

void DataPortal_Create ()
 
- Protected Member Functions inherited from Csla.BusinessBase< PropertyInfoRoot >
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

System.String Name [getset]
 
System.String NameDataAnnotations [getset]
 
System.String NameComponentModel [getset]
 
System.String NameFriendlyName [getset]
 
string NameDefaultValue [getset]
 
string StringNullDefaultValue [getset]
 
- Properties inherited from Csla.BusinessBase< PropertyInfoRoot >
EventHandler< Csla.Core.SavedEventArgsSaved
 Event raised when an object has been saved. More...
 

Additional Inherited Members

- Public Member Functions inherited from Csla.BusinessBase< PropertyInfoRoot >
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< PropertyInfoRoot >
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 PropertyInfoRoot.cs.

Member Function Documentation

◆ DataPortal_Create()

void Csla.Test.PropertyInfo.PropertyInfoRoot.DataPortal_Create ( )
protected

Definition at line 29 of file PropertyInfoRoot.cs.

◆ NewPropertyInfoRoot()

static PropertyInfoRoot Csla.Test.PropertyInfo.PropertyInfoRoot.NewPropertyInfoRoot ( IDataPortal< PropertyInfoRoot dataPortal)
static

Definition at line 19 of file PropertyInfoRoot.cs.

Member Data Documentation

◆ _nameComponentModelProperty

readonly PropertyInfo<System.String> Csla.Test.PropertyInfo.PropertyInfoRoot._nameComponentModelProperty = RegisterProperty<System.String>(p => p.NameComponentModel)
static

Definition at line 55 of file PropertyInfoRoot.cs.

◆ _nameDataAnnotationsProperty

readonly PropertyInfo<System.String> Csla.Test.PropertyInfo.PropertyInfoRoot._nameDataAnnotationsProperty = RegisterProperty<System.String>(p => p.NameDataAnnotations)
static

Definition at line 47 of file PropertyInfoRoot.cs.

◆ _nameFriendlyNameProperty

readonly PropertyInfo<System.String> Csla.Test.PropertyInfo.PropertyInfoRoot._nameFriendlyNameProperty = RegisterProperty<System.String>(p => p.NameFriendlyName, "Name: Friendly Name")
static

Definition at line 63 of file PropertyInfoRoot.cs.

◆ _nameProperty

readonly PropertyInfo<System.String> Csla.Test.PropertyInfo.PropertyInfoRoot._nameProperty = RegisterProperty<System.String>(p => p.Name)
static

Note: We exposed the PropertyInfo's so we can test it...

Definition at line 40 of file PropertyInfoRoot.cs.

◆ NameDefaultValueProperty

readonly PropertyInfo<string> Csla.Test.PropertyInfo.PropertyInfoRoot.NameDefaultValueProperty = RegisterProperty<string>(c => c.NameDefaultValue, string.Empty, "x")
static

Definition at line 70 of file PropertyInfoRoot.cs.

◆ StringNullDefaultValueProperty

readonly PropertyInfo<string> Csla.Test.PropertyInfo.PropertyInfoRoot.StringNullDefaultValueProperty = RegisterProperty<string>(c => c.StringNullDefaultValue, string.Empty, null)
static

Definition at line 77 of file PropertyInfoRoot.cs.

Property Documentation

◆ Name

System.String Csla.Test.PropertyInfo.PropertyInfoRoot.Name
getset

Definition at line 41 of file PropertyInfoRoot.cs.

◆ NameComponentModel

System.String Csla.Test.PropertyInfo.PropertyInfoRoot.NameComponentModel
getset

Definition at line 57 of file PropertyInfoRoot.cs.

◆ NameDataAnnotations

System.String Csla.Test.PropertyInfo.PropertyInfoRoot.NameDataAnnotations
getset

Definition at line 49 of file PropertyInfoRoot.cs.

◆ NameDefaultValue

string Csla.Test.PropertyInfo.PropertyInfoRoot.NameDefaultValue
getset

Definition at line 71 of file PropertyInfoRoot.cs.

◆ NameFriendlyName

System.String Csla.Test.PropertyInfo.PropertyInfoRoot.NameFriendlyName
getset

Definition at line 64 of file PropertyInfoRoot.cs.

◆ StringNullDefaultValue

string Csla.Test.PropertyInfo.PropertyInfoRoot.StringNullDefaultValue
getset

Definition at line 78 of file PropertyInfoRoot.cs.