Craig's Utility Library  4.0 Beta
Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType > Interface Template Reference

Class mapping interface More...

Inheritance diagram for Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >:
Utilities.ORM.BaseClasses.MappingBaseClass< ClassType, DatabaseType > Utilities.ORM.BaseClasses.MappingBaseClass< ClassType, DatabaseType >

Public Member Functions

ID< ClassType, DataType > ID< DataType > (Expression< Func< ClassType, DataType >> Expression)
 Declares a property as an ID More...
 
ManyToMany< ClassType, DataType > ManyToMany< DataType > (Expression< Func< ClassType, IEnumerable< DataType >>> Expression)
 Many to many mapping More...
 
ListManyToMany< ClassType, DataType > ManyToMany< DataType > (Expression< Func< ClassType, List< DataType >>> Expression)
 Many to many mapping More...
 
ManyToOne< ClassType, DataType > ManyToOne< DataType > (Expression< Func< ClassType, DataType >> Expression)
 Many to one More...
 
IEnumerableManyToOne< ClassType, DataType > ManyToOne< DataType > (Expression< Func< ClassType, IEnumerable< DataType >>> Expression)
 IEnumerable many to one More...
 
ListManyToOne< ClassType, DataType > ManyToOne< DataType > (Expression< Func< ClassType, List< DataType >>> Expression)
 IEnumerable many to one More...
 
Map< ClassType, DataType > Map< DataType > (Expression< Func< ClassType, DataType >> Expression)
 Sets a property as a map type More...
 
Reference< ClassType, DataType > Reference< DataType > (Expression< Func< ClassType, DataType >> Expression)
 Sets a property as a reference type More...
 
IMapping SetDeleteCommand (string Command, CommandType CommandType)
 Sets the default delete command More...
 
IMapping SetInsertCommand (string Command, CommandType CommandType)
 Sets the default insert command More...
 
IMapping SetSelectAllCommand (string Command, CommandType CommandType)
 Sets the default select all command More...
 
IMapping SetSelectAnyCommand (string Command, CommandType CommandType)
 Sets the default select any command More...
 
void Setup (ISourceInfo Source, Utilities.ORM.Manager.Mapper.Manager MappingProvider, Utilities.ORM.Manager.QueryProvider.Manager QueryProvider)
 Sets up the mapping More...
 
IMapping SetUpdateCommand (string Command, CommandType CommandType)
 Sets the default update command More...
 

Properties

Type DatabaseConfigType [get]
 Database config type More...
 
string DeleteCommand [get]
 Delete command More...
 
CommandType DeleteCommandType [get]
 Delete command type More...
 
ICollection< IPropertyIDProperties [get]
 ID properties More...
 
string InsertCommand [get]
 Insert command More...
 
CommandType InsertCommandType [get]
 Insert command type More...
 
Type ObjectType [get]
 The object type associated with the mapping More...
 
int Order [get, set]
 Order that the mappings are initialized More...
 
string Prefix [get]
 Prefix used for defining properties/table name More...
 
ICollection< IPropertyProperties [get]
 Properties list More...
 
string SelectAllCommand [get]
 Select all command More...
 
CommandType SelectAllCommandType [get]
 Select all command type More...
 
string SelectAnyCommand [get]
 Select any command More...
 
CommandType SelectAnyCommandType [get]
 Select any command type More...
 
string Suffix [get]
 Suffix used for defining properties/table name More...
 
string TableName [get]
 Table name More...
 
string UpdateCommand [get]
 Update command More...
 
CommandType UpdateCommandType [get]
 Update command type More...
 

Detailed Description

Class mapping interface

Mapping interface

Template Parameters
ClassTypeClass type
Type Constraints
ClassType :class 

Definition at line 36 of file IMapping.cs.

Member Function Documentation

ID<ClassType, DataType> Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.ID< DataType > ( Expression< Func< ClassType, DataType >>  Expression)

Declares a property as an ID

Template Parameters
DataTypeData type
Parameters
ExpressionExpression pointing to the property
Returns
the ID object
ManyToMany<ClassType, DataType> Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.ManyToMany< DataType > ( Expression< Func< ClassType, IEnumerable< DataType >>>  Expression)

Many to many mapping

Template Parameters
DataTypeData type
Parameters
ExpressionExpression pointing to the many to many property
Returns
The many to many object
Type Constraints
DataType :class 
ListManyToMany<ClassType, DataType> Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.ManyToMany< DataType > ( Expression< Func< ClassType, List< DataType >>>  Expression)

Many to many mapping

Template Parameters
DataTypeData type
Parameters
ExpressionExpression pointing to the many to many property
Returns
The many to many object
Type Constraints
DataType :class 
ManyToOne<ClassType, DataType> Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.ManyToOne< DataType > ( Expression< Func< ClassType, DataType >>  Expression)

Many to one

Template Parameters
DataTypeData type
Parameters
ExpressionExpression pointing to the property
Returns
The many to one object
Type Constraints
DataType :class 
IEnumerableManyToOne<ClassType, DataType> Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.ManyToOne< DataType > ( Expression< Func< ClassType, IEnumerable< DataType >>>  Expression)

IEnumerable many to one

Template Parameters
DataTypeData type
Parameters
ExpressionExpression pointint to the property
Returns
The many to one object
Type Constraints
DataType :class 
ListManyToOne<ClassType, DataType> Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.ManyToOne< DataType > ( Expression< Func< ClassType, List< DataType >>>  Expression)

IEnumerable many to one

Template Parameters
DataTypeData type
Parameters
ExpressionExpression pointint to the property
Returns
The many to one object
Type Constraints
DataType :class 
Map<ClassType, DataType> Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.Map< DataType > ( Expression< Func< ClassType, DataType >>  Expression)

Sets a property as a map type

Template Parameters
DataTypeData type
Parameters
ExpressionExpression pointing to the property
Returns
the map object
Type Constraints
DataType :class 
Reference<ClassType, DataType> Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.Reference< DataType > ( Expression< Func< ClassType, DataType >>  Expression)

Sets a property as a reference type

Template Parameters
DataTypeData type
Parameters
ExpressionExpression pointing to the property
Returns
the reference object
IMapping Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.SetDeleteCommand ( string  Command,
CommandType  CommandType 
)

Sets the default delete command

Parameters
CommandCommand
CommandTypeCommand type
Returns
This
IMapping Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.SetInsertCommand ( string  Command,
CommandType  CommandType 
)

Sets the default insert command

Parameters
CommandCommand
CommandTypeCommand type
Returns
This
IMapping Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.SetSelectAllCommand ( string  Command,
CommandType  CommandType 
)

Sets the default select all command

Parameters
CommandCommand
CommandTypeCommand type
Returns
This
IMapping Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.SetSelectAnyCommand ( string  Command,
CommandType  CommandType 
)

Sets the default select any command

Parameters
CommandCommand
CommandTypeCommand type
Returns
This

Sets up the mapping

Parameters
SourceSource info
QueryProviderQuery provider
MappingProviderMapping provider
IMapping Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.SetUpdateCommand ( string  Command,
CommandType  CommandType 
)

Sets the default update command

Parameters
CommandCommand
CommandTypeCommand type
Returns
This

Property Documentation

Type Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.DatabaseConfigType
get

Database config type

Definition at line 118 of file IMapping.cs.

string Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.DeleteCommand
get

Delete command

Definition at line 123 of file IMapping.cs.

CommandType Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.DeleteCommandType
get

Delete command type

Definition at line 128 of file IMapping.cs.

ICollection<IProperty> Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.IDProperties
get

ID properties

Definition at line 133 of file IMapping.cs.

string Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.InsertCommand
get

Insert command

Definition at line 138 of file IMapping.cs.

CommandType Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.InsertCommandType
get

Insert command type

Definition at line 143 of file IMapping.cs.

Type Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.ObjectType
get

The object type associated with the mapping

Definition at line 148 of file IMapping.cs.

int Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.Order
getset

Order that the mappings are initialized

Definition at line 153 of file IMapping.cs.

string Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.Prefix
get

Prefix used for defining properties/table name

Definition at line 158 of file IMapping.cs.

ICollection<IProperty> Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.Properties
get

Properties list

Definition at line 163 of file IMapping.cs.

string Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.SelectAllCommand
get

Select all command

Definition at line 168 of file IMapping.cs.

CommandType Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.SelectAllCommandType
get

Select all command type

Definition at line 173 of file IMapping.cs.

string Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.SelectAnyCommand
get

Select any command

Definition at line 178 of file IMapping.cs.

CommandType Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.SelectAnyCommandType
get

Select any command type

Definition at line 183 of file IMapping.cs.

string Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.Suffix
get

Suffix used for defining properties/table name

Definition at line 188 of file IMapping.cs.

string Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.TableName
get

Table name

Definition at line 193 of file IMapping.cs.

string Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.UpdateCommand
get

Update command

Definition at line 198 of file IMapping.cs.

CommandType Utilities.ORM.Manager.Mapper.Interfaces.IMapping< ClassType >.UpdateCommandType
get

Update command type

Definition at line 203 of file IMapping.cs.


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