Craig's Utility Library
4.0 Beta
|
Property base class More...
Public Member Functions | |
abstract IBatch | CascadeDelete (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen) |
Does a cascade delete of an object for this property More... | |
abstract IBatch | CascadeJoinsDelete (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen) |
Called to create a batch that deletes items from the joining tables More... | |
abstract IBatch | CascadeJoinsSave (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen) |
Called to create a batch that saves items from the joining tables More... | |
abstract IBatch | CascadeSave (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen) |
Does a cascade save of an object for this property More... | |
override bool | Equals (object obj) |
Determines if the two objects are equal and returns true if they are, false otherwise More... | |
override int | GetHashCode () |
Returns the hash code for the property More... | |
abstract object | GetParameter (object Object) |
Gets the property as a parameter (for classes, this will return the ID of the property) More... | |
abstract object | GetParameter (Dynamo Object) |
Gets the property as a parameter (for classes, this will return the ID of the property) More... | |
object | GetValue (ClassType Object) |
Gets the property's value from the object sent in More... | |
object | GetValue (object Object) |
Gets the property's value from the object sent in More... | |
object | GetValue (Dynamo Object) |
Gets the property's value from the object sent in More... | |
abstract IBatch | JoinsDelete (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen) |
Called to create a batch that deletes items from the joining table More... | |
abstract IBatch | JoinsSave (ClassType Object, ISourceInfo Source, IList< object > ObjectsSeen) |
Called to create a batch that saves items from the joining table More... | |
ReturnType | SetAutoIncrement () |
Turns on autoincrement for this property More... | |
ReturnType | SetCascade () |
Turns on cascade for saving/deleting More... | |
ReturnType | SetDefaultValue (Func< DataType > Value) |
Sets the default value of the property More... | |
ReturnType | SetFieldName (string FieldName) |
Sets the name of the field in the database More... | |
ReturnType | SetIndex () |
Turns on indexing for this property More... | |
ReturnType | SetLoadUsingCommand (string Command, CommandType CommandType) |
Allows you to load a property based on a specified command More... | |
ReturnType | SetMaxLength (int MaxLength) |
Sets the max length for the property (or precision for items like decimal values) More... | |
ReturnType | SetNotNull () |
Sets the field such that null values are not allowed More... | |
ReturnType | SetTableName (string TableName) |
Set database table name More... | |
ReturnType | SetUnique () |
Ensures the field is unique More... | |
abstract void | Setup (ISourceInfo Source, Manager MappingProvider, QueryProvider.Manager QueryProvider) |
Sets up the property, is used internally More... | |
override string | ToString () |
Gets the property as a string More... | |
Static Public Member Functions | |
static bool | operator!= (PropertyBase< ClassType, DataType, ReturnType > first, PropertyBase< ClassType, DataType, ReturnType > second) |
!= operator More... | |
static bool | operator< (PropertyBase< ClassType, DataType, ReturnType > first, PropertyBase< ClassType, DataType, ReturnType > second) |
The < operator More... | |
static bool | operator== (PropertyBase< ClassType, DataType, ReturnType > first, PropertyBase< ClassType, DataType, ReturnType > second) |
The == operator More... | |
static bool | operator> (PropertyBase< ClassType, DataType, ReturnType > first, PropertyBase< ClassType, DataType, ReturnType > second) |
The > operator More... | |
Protected Member Functions | |
PropertyBase (Expression< Func< ClassType, DataType >> Expression, IMapping Mapping) | |
Constructor More... | |
Properties | |
bool | AutoIncrement [get] |
Auto increment More... | |
bool | Cascade [get] |
Cascade More... | |
Func< ClassType, DataType > | CompiledExpression [get] |
Compiled expression More... | |
Func< DataType > | DefaultValue [get] |
Default value More... | |
string | DerivedFieldName [get] |
Derived field name More... | |
Expression< Func< ClassType, DataType > > | Expression [get] |
Expression More... | |
string | FieldName [get] |
Field name More... | |
IMapping | ForeignMapping [get, set] |
Foreign mapping More... | |
bool | Index [get] |
Index More... | |
string | LoadCommand [get] |
Command used to load the property More... | |
CommandType | LoadCommandType [get] |
Command type for the load command More... | |
IMapping | Mapping [get] |
Mapping More... | |
int | MaxLength [get] |
Max length More... | |
string | Name [get] |
Property name More... | |
bool | NotNull [get] |
Not null More... | |
Graph< IMapping > | Structure [get, protected set] |
Gets the structure. More... | |
string | TableName [get] |
Table name More... | |
Type | Type [get, protected set] |
Property type More... | |
abstract string | TypeName [get] |
Gets the name of the type. More... | |
bool | Unique [get] |
Unique More... | |
Property base class
ClassType | : | class | |
ReturnType | : | IProperty | |
ReturnType | : | ClassType | |
ReturnType | : | DataType | |
ReturnType | : | ReturnType |
Definition at line 37 of file PropertyBase.cs.
|
protected |
Constructor
Expression | Expression used to point to the property |
Mapping | Mapping the StringID is added to |
Definition at line 46 of file PropertyBase.cs.
|
pure virtual |
Does a cascade delete of an object for this property
Object | Object |
Source | Source info |
ObjectsSeen | Objects that have been seen thus far |
|
pure virtual |
Called to create a batch that deletes items from the joining tables
Object | Object |
Source | Source info |
ObjectsSeen | Objects that have been seen thus far |
|
pure virtual |
Called to create a batch that saves items from the joining tables
Object | Object |
Source | Source info |
ObjectsSeen | Objects that have been seen thus far |
|
pure virtual |
Does a cascade save of an object for this property
Object | Object |
Source | Source info |
ObjectsSeen | Objects that have been seen thus far |
override bool Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.Equals | ( | object | obj | ) |
Determines if the two objects are equal and returns true if they are, false otherwise
obj | Object to compare to |
Definition at line 260 of file PropertyBase.cs.
override int Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.GetHashCode | ( | ) |
Returns the hash code for the property
Definition at line 272 of file PropertyBase.cs.
|
pure virtual |
Gets the property as a parameter (for classes, this will return the ID of the property)
Object | Object to get the parameter from |
|
pure virtual |
Gets the property as a parameter (for classes, this will return the ID of the property)
Object | Object to get the parameter from |
object Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.GetValue | ( | ClassType | Object | ) |
Gets the property's value from the object sent in
Object | Object to get the value from |
Definition at line 296 of file PropertyBase.cs.
object Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.GetValue | ( | object | Object | ) |
Gets the property's value from the object sent in
Object | Object to get the value from |
Definition at line 308 of file PropertyBase.cs.
object Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.GetValue | ( | Dynamo | Object | ) |
Gets the property's value from the object sent in
Object | Object to get the value from |
Definition at line 318 of file PropertyBase.cs.
|
pure virtual |
Called to create a batch that deletes items from the joining table
Object | Object |
Source | Source info |
ObjectsSeen | Objects that have been visited thus far |
|
pure virtual |
Called to create a batch that saves items from the joining table
Object | Object |
Source | Source info |
ObjectsSeen | Objects that have been visited thus far |
|
static |
!= operator
first | First item |
second | Second item |
Definition at line 167 of file PropertyBase.cs.
|
static |
The < operator
first | First item |
second | Second item |
Definition at line 178 of file PropertyBase.cs.
|
static |
The == operator
first | First item |
second | Second item |
Definition at line 193 of file PropertyBase.cs.
|
static |
The > operator
first | First item |
second | Second item |
Definition at line 210 of file PropertyBase.cs.
ReturnType Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.SetAutoIncrement | ( | ) |
Turns on autoincrement for this property
Definition at line 345 of file PropertyBase.cs.
ReturnType Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.SetCascade | ( | ) |
ReturnType Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.SetDefaultValue | ( | Func< DataType > | Value | ) |
Sets the default value of the property
Value | Default value |
Definition at line 366 of file PropertyBase.cs.
ReturnType Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.SetFieldName | ( | string | FieldName | ) |
Sets the name of the field in the database
FieldName | Field name |
Definition at line 377 of file PropertyBase.cs.
ReturnType Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.SetIndex | ( | ) |
ReturnType Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.SetLoadUsingCommand | ( | string | Command, |
CommandType | CommandType | ||
) |
Allows you to load a property based on a specified command
Command | Command used to load the property |
CommandType | Command type |
Definition at line 399 of file PropertyBase.cs.
ReturnType Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.SetMaxLength | ( | int | MaxLength | ) |
Sets the max length for the property (or precision for items like decimal values)
MaxLength | Max length |
Definition at line 411 of file PropertyBase.cs.
ReturnType Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.SetNotNull | ( | ) |
Sets the field such that null values are not allowed
Definition at line 421 of file PropertyBase.cs.
ReturnType Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.SetTableName | ( | string | TableName | ) |
Set database table name
TableName | Table name |
Definition at line 432 of file PropertyBase.cs.
ReturnType Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.SetUnique | ( | ) |
|
pure virtual |
Sets up the property, is used internally
MappingProvider | Mapping provider |
QueryProvider | Query provider |
Source | Source info |
override string Utilities.ORM.Manager.Mapper.BaseClasses.PropertyBase< ClassType, DataType, ReturnType >.ToString | ( | ) |
Gets the property as a string
Definition at line 460 of file PropertyBase.cs.
|
get |
Auto increment
Definition at line 62 of file PropertyBase.cs.
|
get |
Cascade
Definition at line 67 of file PropertyBase.cs.
|
get |
Compiled expression
Definition at line 72 of file PropertyBase.cs.
|
get |
Default value
Definition at line 77 of file PropertyBase.cs.
|
get |
Derived field name
Definition at line 82 of file PropertyBase.cs.
|
get |
Expression
Definition at line 87 of file PropertyBase.cs.
|
get |
Field name
Definition at line 92 of file PropertyBase.cs.
|
getset |
Foreign mapping
Definition at line 97 of file PropertyBase.cs.
|
get |
Index
Definition at line 102 of file PropertyBase.cs.
|
get |
Command used to load the property
Definition at line 107 of file PropertyBase.cs.
|
get |
Command type for the load command
Definition at line 112 of file PropertyBase.cs.
|
get |
Mapping
Definition at line 117 of file PropertyBase.cs.
|
get |
Max length
Definition at line 122 of file PropertyBase.cs.
|
get |
Property name
Definition at line 127 of file PropertyBase.cs.
|
get |
Not null
Definition at line 132 of file PropertyBase.cs.
|
getprotected set |
|
get |
Table name
Definition at line 143 of file PropertyBase.cs.
|
getprotected set |
Property type
Definition at line 148 of file PropertyBase.cs.
|
get |
|
get |
Unique
Definition at line 159 of file PropertyBase.cs.