Craig's Utility Library  4.0 Beta
Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType > Class Template Reference

Many to one class More...

Inheritance diagram for Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >:
Utilities.ORM.Manager.Mapper.Interfaces.IManyToOne Utilities.ORM.Manager.Mapper.Interfaces.ISingleMapping

Public Member Functions

 ManyToOne (Expression< Func< ClassType, DataType >> Expression, IMapping Mapping)
 Constructor More...
 
override IBatch CascadeDelete (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen)
 Does a cascade delete of an object for this property More...
 
override IBatch CascadeJoinsDelete (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen)
 Called to create a batch that deletes items from the joining tables More...
 
override IBatch CascadeJoinsSave (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen)
 Called to create a batch that saves items from the joining tables More...
 
override IBatch CascadeSave (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen)
 Does a cascade save of an object for this property More...
 
override object GetParameter (object Object)
 Gets the property as a parameter (for classes, this will return the ID of the property) More...
 
override object GetParameter (Dynamo Object)
 Gets the property as a parameter (for classes, this will return the ID of the property) More...
 
override IBatch JoinsDelete (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen)
 Called to create a batch that deletes items from the joining table More...
 
override IBatch JoinsSave (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen)
 Called to create a batch that saves items from the joining table More...
 
override void Setup (ISourceInfo Source, Mapper.Manager MappingProvider, QueryProvider.Manager QueryProvider)
 Sets up the property More...
 

Properties

override string TypeName [get]
 Gets the name of the type. More...
 

Detailed Description

Many to one class

Template Parameters
ClassTypeClass type
DataTypeData type
Type Constraints
ClassType :class 
DataType :class 

Definition at line 41 of file ManyToOne.cs.

Constructor & Destructor Documentation

Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.ManyToOne ( Expression< Func< ClassType, DataType >>  Expression,
IMapping  Mapping 
)

Constructor

Parameters
ExpressionExpression pointing to the many to one
MappingMapping the StringID is added to

Definition at line 50 of file ManyToOne.cs.

Member Function Documentation

override IBatch Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.CascadeDelete ( ClassType  Object,
ISourceInfo  Source,
IList< object >  ObjectsSeen 
)

Does a cascade delete of an object for this property

Parameters
ObjectObject
SourceSource info
ObjectsSeenObjects seen thus far
Returns
Batch object with the appropriate commands

Definition at line 79 of file ManyToOne.cs.

override IBatch Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.CascadeJoinsDelete ( ClassType  Object,
ISourceInfo  Source,
IList< object >  ObjectsSeen 
)

Called to create a batch that deletes items from the joining tables

Parameters
ObjectObject
SourceSource info
ObjectsSeenObjects seen thus far
Returns
Batch object with the appropriate commands

Definition at line 109 of file ManyToOne.cs.

override IBatch Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.CascadeJoinsSave ( ClassType  Object,
ISourceInfo  Source,
IList< object >  ObjectsSeen 
)

Called to create a batch that saves items from the joining tables

Parameters
ObjectObject
SourceSource info
ObjectsSeenObjects seen thus far
Returns
Batch object with the appropriate commands

Definition at line 147 of file ManyToOne.cs.

override IBatch Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.CascadeSave ( ClassType  Object,
ISourceInfo  Source,
IList< object >  ObjectsSeen 
)

Does a cascade save of an object for this property

Parameters
ObjectObject
SourceSource info
ObjectsSeenObjects seen thus far
Returns
Batch object with the appropriate commands

Definition at line 185 of file ManyToOne.cs.

override object Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.GetParameter ( object  Object)

Gets the property as a parameter (for classes, this will return the ID of the property)

Parameters
ObjectObject to get the parameter from
Returns
The parameter version of the property

Definition at line 213 of file ManyToOne.cs.

override object Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.GetParameter ( Dynamo  Object)

Gets the property as a parameter (for classes, this will return the ID of the property)

Parameters
ObjectObject to get the parameter from
Returns
The parameter version of the property

Definition at line 223 of file ManyToOne.cs.

override IBatch Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.JoinsDelete ( ClassType  Object,
ISourceInfo  Source,
IList< object >  ObjectsSeen 
)

Called to create a batch that deletes items from the joining table

Parameters
ObjectObject
SourceSource info
ObjectsSeenObjects seen thus far
Returns
Batch object with the appropriate commands

Definition at line 235 of file ManyToOne.cs.

override IBatch Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.JoinsSave ( ClassType  Object,
ISourceInfo  Source,
IList< object >  ObjectsSeen 
)

Called to create a batch that saves items from the joining table

Parameters
ObjectObject
SourceSource info
ObjectsSeenObjects seen thus far
Returns
Batch object with the appropriate commands

Definition at line 253 of file ManyToOne.cs.

override void Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.Setup ( ISourceInfo  Source,
Mapper.Manager  MappingProvider,
QueryProvider.Manager  QueryProvider 
)

Sets up the property

Parameters
MappingProviderMapping provider
QueryProviderQuery provider
SourceSource info

Definition at line 270 of file ManyToOne.cs.

Property Documentation

override string Utilities.ORM.Manager.Mapper.Default.ManyToOne< ClassType, DataType >.TypeName
get

Gets the name of the type.

The name of the type.

Definition at line 68 of file ManyToOne.cs.


The documentation for this class was generated from the following file: