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

Public Member Functions

 Foo ()
 
void AddChild (IDataPortal< Foo > dataPortal)
 
void MockUpdated ()
 
void MarkForDelete ()
 
void MockDeleted ()
 
- Public Member Functions inherited from Csla.BusinessBase< Foo >
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< FooChildProperty = RegisterProperty<Foo>(c => c.Child)
 
static readonly PropertyInfo< FooListChildListProperty = RegisterProperty<FooList>(c => c.ChildList)
 

Protected Member Functions

override void AddBusinessRules ()
 
- Protected Member Functions inherited from Csla.BusinessBase< Foo >
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 Name [getset]
 
Foo Child [getset]
 
FooList ChildList [get]
 
- Properties inherited from Csla.BusinessBase< Foo >
EventHandler< Csla.Core.SavedEventArgsSaved
 Event raised when an object has been saved. More...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ Foo()

Csla.Test.GraphMerge.Foo.Foo ( )

Definition at line 14 of file TestClasses.cs.

Member Function Documentation

◆ AddBusinessRules()

override void Csla.Test.GraphMerge.Foo.AddBusinessRules ( )
protected

Definition at line 72 of file TestClasses.cs.

◆ AddChild()

void Csla.Test.GraphMerge.Foo.AddChild ( IDataPortal< Foo dataPortal)

Definition at line 41 of file TestClasses.cs.

◆ MarkForDelete()

void Csla.Test.GraphMerge.Foo.MarkForDelete ( )

Definition at line 56 of file TestClasses.cs.

◆ MockDeleted()

void Csla.Test.GraphMerge.Foo.MockDeleted ( )

Definition at line 64 of file TestClasses.cs.

◆ MockUpdated()

void Csla.Test.GraphMerge.Foo.MockUpdated ( )

Definition at line 48 of file TestClasses.cs.

Member Data Documentation

◆ ChildListProperty

readonly PropertyInfo<FooList> Csla.Test.GraphMerge.Foo.ChildListProperty = RegisterProperty<FooList>(c => c.ChildList)
static

Definition at line 34 of file TestClasses.cs.

◆ ChildProperty

readonly PropertyInfo<Foo> Csla.Test.GraphMerge.Foo.ChildProperty = RegisterProperty<Foo>(c => c.Child)
static

Definition at line 27 of file TestClasses.cs.

◆ NameProperty

readonly PropertyInfo<string> Csla.Test.GraphMerge.Foo.NameProperty
static
Initial value:
=
RegisterProperty<string>(c => c.Name)

Definition at line 19 of file TestClasses.cs.

Property Documentation

◆ Child

Foo Csla.Test.GraphMerge.Foo.Child
getset

Definition at line 28 of file TestClasses.cs.

◆ ChildList

FooList Csla.Test.GraphMerge.Foo.ChildList
get

Definition at line 35 of file TestClasses.cs.

◆ Name

string Csla.Test.GraphMerge.Foo.Name
getset

Definition at line 21 of file TestClasses.cs.