C# Class MonkeyWrench.DataClasses.DBRecord

Mostra file Open project: rolfbjarne/monkeywrench Class Usage Examples

Public Properties

Property Type Description
DatabaseNow System.DateTime
id int

Public Methods

Method Description
CreateParameter ( IDbCommand cmd, string name, object value ) : void
DBRecord ( ) : System
DBRecord ( IDataReader reader ) : System
Delete ( IDB db ) : void
DeleteInternal ( IDB db ) : void
DeleteInternal ( IDB db, int id, string Table ) : void

A default Delete implementation

Load ( IDataReader reader ) : void
Reload ( IDB db ) : void
Save ( IDB db ) : void

Protected Methods

Method Description
LoadInternal ( IDataReader cmd ) : void

A default Load implementation using reflection

SaveInternal ( IDB db ) : void

A default Save implementation using reflection

Private Methods

Method Description
GetField ( string field ) : FieldInfo

Method Details

CreateParameter() public static method

public static CreateParameter ( IDbCommand cmd, string name, object value ) : void
cmd IDbCommand
name string
value object
return void

DBRecord() public method

public DBRecord ( ) : System
return System

DBRecord() public method

public DBRecord ( IDataReader reader ) : System
reader IDataReader
return System

Delete() public method

public Delete ( IDB db ) : void
db IDB
return void

DeleteInternal() public method

public DeleteInternal ( IDB db ) : void
db IDB
return void

DeleteInternal() public static method

A default Delete implementation
public static DeleteInternal ( IDB db, int id, string Table ) : void
db IDB
id int
Table string
return void

Load() public method

public Load ( IDataReader reader ) : void
reader IDataReader
return void

LoadInternal() protected method

A default Load implementation using reflection
protected LoadInternal ( IDataReader cmd ) : void
cmd IDataReader
return void

Reload() public method

public Reload ( IDB db ) : void
db IDB
return void

Save() public method

public Save ( IDB db ) : void
db IDB
return void

SaveInternal() protected method

A default Save implementation using reflection
protected SaveInternal ( IDB db ) : void
db IDB
return void

Property Details

DatabaseNow public_oe static_oe property

Setting a datetime field to this value will cause any insert/update to use the now() function to get the value for the field instead of this value.
public static DateTime,System DatabaseNow
return System.DateTime

id public_oe property

public int id
return int