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

Static Public Member Functions

static RuleBaseClassesRoot NewEditableRoot (IDataPortal< RuleBaseClassesRoot > dataPortal, string ruleSet)
 

Static Public Attributes

static readonly PropertyInfo< int > CustomerIdProperty = RegisterProperty<int>(c => c.CustomerId)
 
static readonly PropertyInfo< string > NameProperty = RegisterProperty<string>(c => c.Name)
 
static readonly PropertyInfo< int > Num1Property = RegisterProperty<int>(c => c.Num1)
 
static readonly PropertyInfo< int > Num2Property = RegisterProperty<int>(c => c.Num2)
 
static readonly PropertyInfo< int > SumProperty = RegisterProperty<int>(c => c.Sum)
 
static readonly PropertyInfo< string > CountryProperty = RegisterProperty<string>(c => c.Country)
 
static readonly PropertyInfo< string > StateProperty = RegisterProperty<string>(c => c.State)
 
static readonly PropertyInfo< Csla.SmartDateStartDateProperty = RegisterProperty<Csla.SmartDate>(c => c.StartDate, null, new Csla.SmartDate())
 
static readonly PropertyInfo< Csla.SmartDateEndDateProperty = RegisterProperty<Csla.SmartDate>(c => c.EndDate, null, new Csla.SmartDate())
 

Protected Member Functions

override void PropertyHasChanged (IPropertyInfo property)
 
override void AddBusinessRules ()
 
void DataPortal_Create (string ruleSet)
 
- Protected Member Functions inherited from Csla.BusinessBase< RuleBaseClassesRoot >
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

int CustomerId [getset]
 
string Name [getset]
 
int Num1 [getset]
 
int Num2 [getset]
 
int Sum [getset]
 
string Country [getset]
 
string State [getset]
 
string StartDate [getset]
 
string EndDate [getset]
 
- Properties inherited from Csla.BusinessBase< RuleBaseClassesRoot >
EventHandler< Csla.Core.SavedEventArgsSaved
 Event raised when an object has been saved. More...
 

Additional Inherited Members

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

Member Function Documentation

◆ AddBusinessRules()

override void Csla.Test.ValidationRules.RuleBaseClassesRoot.AddBusinessRules ( )
protected

Definition at line 92 of file RuleBaseClassesRoot.cs.

◆ DataPortal_Create()

void Csla.Test.ValidationRules.RuleBaseClassesRoot.DataPortal_Create ( string  ruleSet)
protected

Definition at line 131 of file RuleBaseClassesRoot.cs.

◆ NewEditableRoot()

static RuleBaseClassesRoot Csla.Test.ValidationRules.RuleBaseClassesRoot.NewEditableRoot ( IDataPortal< RuleBaseClassesRoot dataPortal,
string  ruleSet 
)
static

Definition at line 123 of file RuleBaseClassesRoot.cs.

◆ PropertyHasChanged()

override void Csla.Test.ValidationRules.RuleBaseClassesRoot.PropertyHasChanged ( IPropertyInfo  property)
protected

Definition at line 84 of file RuleBaseClassesRoot.cs.

Member Data Documentation

◆ CountryProperty

readonly PropertyInfo<string> Csla.Test.ValidationRules.RuleBaseClassesRoot.CountryProperty = RegisterProperty<string>(c => c.Country)
static

Definition at line 54 of file RuleBaseClassesRoot.cs.

◆ CustomerIdProperty

readonly PropertyInfo<int> Csla.Test.ValidationRules.RuleBaseClassesRoot.CustomerIdProperty = RegisterProperty<int>(c => c.CustomerId)
static

Definition at line 19 of file RuleBaseClassesRoot.cs.

◆ EndDateProperty

readonly PropertyInfo<Csla.SmartDate> Csla.Test.ValidationRules.RuleBaseClassesRoot.EndDateProperty = RegisterProperty<Csla.SmartDate>(c => c.EndDate, null, new Csla.SmartDate())
static

Definition at line 75 of file RuleBaseClassesRoot.cs.

◆ NameProperty

readonly PropertyInfo<string> Csla.Test.ValidationRules.RuleBaseClassesRoot.NameProperty = RegisterProperty<string>(c => c.Name)
static

Definition at line 26 of file RuleBaseClassesRoot.cs.

◆ Num1Property

readonly PropertyInfo<int> Csla.Test.ValidationRules.RuleBaseClassesRoot.Num1Property = RegisterProperty<int>(c => c.Num1)
static

Definition at line 33 of file RuleBaseClassesRoot.cs.

◆ Num2Property

readonly PropertyInfo<int> Csla.Test.ValidationRules.RuleBaseClassesRoot.Num2Property = RegisterProperty<int>(c => c.Num2)
static

Definition at line 40 of file RuleBaseClassesRoot.cs.

◆ StartDateProperty

readonly PropertyInfo<Csla.SmartDate> Csla.Test.ValidationRules.RuleBaseClassesRoot.StartDateProperty = RegisterProperty<Csla.SmartDate>(c => c.StartDate, null, new Csla.SmartDate())
static

Definition at line 68 of file RuleBaseClassesRoot.cs.

◆ StateProperty

readonly PropertyInfo<string> Csla.Test.ValidationRules.RuleBaseClassesRoot.StateProperty = RegisterProperty<string>(c => c.State)
static

Definition at line 61 of file RuleBaseClassesRoot.cs.

◆ SumProperty

readonly PropertyInfo<int> Csla.Test.ValidationRules.RuleBaseClassesRoot.SumProperty = RegisterProperty<int>(c => c.Sum)
static

Definition at line 47 of file RuleBaseClassesRoot.cs.

Property Documentation

◆ Country

string Csla.Test.ValidationRules.RuleBaseClassesRoot.Country
getset

Definition at line 55 of file RuleBaseClassesRoot.cs.

◆ CustomerId

int Csla.Test.ValidationRules.RuleBaseClassesRoot.CustomerId
getset

Definition at line 20 of file RuleBaseClassesRoot.cs.

◆ EndDate

string Csla.Test.ValidationRules.RuleBaseClassesRoot.EndDate
getset

Definition at line 76 of file RuleBaseClassesRoot.cs.

◆ Name

string Csla.Test.ValidationRules.RuleBaseClassesRoot.Name
getset

Definition at line 27 of file RuleBaseClassesRoot.cs.

◆ Num1

int Csla.Test.ValidationRules.RuleBaseClassesRoot.Num1
getset

Definition at line 34 of file RuleBaseClassesRoot.cs.

◆ Num2

int Csla.Test.ValidationRules.RuleBaseClassesRoot.Num2
getset

Definition at line 41 of file RuleBaseClassesRoot.cs.

◆ StartDate

string Csla.Test.ValidationRules.RuleBaseClassesRoot.StartDate
getset

Definition at line 69 of file RuleBaseClassesRoot.cs.

◆ State

string Csla.Test.ValidationRules.RuleBaseClassesRoot.State
getset

Definition at line 62 of file RuleBaseClassesRoot.cs.

◆ Sum

int Csla.Test.ValidationRules.RuleBaseClassesRoot.Sum
getset

Definition at line 48 of file RuleBaseClassesRoot.cs.