ORM Sample Class Library

DataManagerBase Members

DataManagerBase overview

Public Instance Constructors

DataManagerBaseOverloaded. Initializes a new instance of the DataManagerBase class.

Public Instance Properties

CommandTimeout Gets or sets the wait time before terminating the attempt to execute a command and generating an error. The time (in seconds) to wait for the command to execute. The default is 30 seconds.
Connection Gets and sets the SqlConnection This property will only have an SqlConnection if it was supplied by the client, otherwise an internal connection will be used, and it will not be exposed.
DataSet Gets and sets the DataSet.
Dsn DSN database connection string.
LastCommitText This property contains the last commit SQL that was generated by the DataManager. Useful for debugging.
LastQueryText This property contains the last SQL retrieval query that was generated by the DataManager. Useful for debugging.
QueryCriteria Critiera for the query
Transaction Transaction to run the sql in.

Public Instance Methods

CommitAll Commits the current dataset to the database.
CommitAllDebug Does not commit the data to the DB
CommitDataSet Commits a dataset to the database.
DiscardChanges Discards all changes made since the last call to CommitAll().
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ExecuteProcedure Should we expose this? Executes a stored proc.
GetDataView Gets a view from the Database
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
PopulateObjectsFromDataSet Merges a given dataset into the DataManagers underlying dataset, so that objects may be avalable via the Get<Object>FromDataSet(PKey) signature.
ToString (inherited from Object)Returns a String that represents the current Object.

Public Instance Events

Committed Raised when CommitAll is called, after the data is committed.
Committing Raised when CommitAll is called, before the data is committed.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

Protected Internal Instance Methods

ExecuteSqlOverloaded. Executes the SQL against the current database.

See Also

DataManagerBase Class | OrmLib Namespace


ew If the parent is supplied ( a parent or the datamanger ) then it will be used to create a new object, providing the object has no parameters on its constructor.