ORM Sample Class Library

DataManager Members

DataManager overview

Public Instance Constructors

DataManagerOverloaded. Initializes a new instance of the DataManager class.

Public Instance Properties

CommandTimeout (inherited from DataManagerBase) 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 (inherited from DataManagerBase) 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 (inherited from DataManagerBase) Gets and sets the DataSet.
Dsn (inherited from DataManagerBase) DSN database connection string.
LastCommitText (inherited from DataManagerBase) This property contains the last commit SQL that was generated by the DataManager. Useful for debugging.
LastQueryText (inherited from DataManagerBase) This property contains the last SQL retrieval query that was generated by the DataManager. Useful for debugging.
QueryCriteria (inherited from DataManagerBase) Critiera for the query
Transaction (inherited from DataManagerBase) Transaction to run the sql in.

Public Instance Methods

CommitAll (inherited from DataManagerBase) Commits the current dataset to the database.
CommitAllDebug (inherited from DataManagerBase) Does not commit the data to the DB
CommitDataSet (inherited from DataManagerBase) Commits a dataset to the database.
DiscardChanges (inherited from DataManagerBase) 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 (inherited from DataManagerBase) Should we expose this? Executes a stored proc.
GetContact Gets a OleroTrainingBiz.Contact based on the criteria specified by QueryCriteria.And(..).
GetContactCollectionOverloaded. Gets multiple Contacts based on the criteria specified by QueryCriteria.And(..).
GetContactCollectionFromDataSet Gets a collection of Contact from the already loaded records in this DataManager instance.
GetContactFromDataSet Gets a OleroTrainingBiz.Contact from the already loaded records in this DataManager, by primary key.
GetCourse Gets a OleroTrainingBiz.Course based on the criteria specified by QueryCriteria.And(..).
GetCourseCollectionOverloaded. Gets multiple Courses based on the criteria specified by QueryCriteria.And(..).
GetCourseCollectionFromDataSet Gets a collection of Course from the already loaded records in this DataManager instance.
GetCourseFromDataSet Gets a OleroTrainingBiz.Course from the already loaded records in this DataManager, by primary key.
GetDataView (inherited from DataManagerBase) Gets a view from the Database
GetEnrollment Gets a OleroTrainingBiz.Enrollment based on the criteria specified by QueryCriteria.And(..).
GetEnrollmentCollectionOverloaded. Gets multiple Enrollments based on the criteria specified by QueryCriteria.And(..).
GetEnrollmentCollectionFromDataSet Gets a collection of Enrollment from the already loaded records in this DataManager instance.
GetEnrollmentFromDataSet Gets a OleroTrainingBiz.Enrollment from the already loaded records in this DataManager, by primary key.
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.
GetRoom Gets a OleroTrainingBiz.Room based on the criteria specified by QueryCriteria.And(..).
GetRoomCollectionOverloaded. Gets multiple Rooms based on the criteria specified by QueryCriteria.And(..).
GetRoomCollectionFromDataSet Gets a collection of Room from the already loaded records in this DataManager instance.
GetRoomFromDataSet Gets a OleroTrainingBiz.Room from the already loaded records in this DataManager, by primary key.
GetSchedule Gets a OleroTrainingBiz.Schedule based on the criteria specified by QueryCriteria.And(..).
GetScheduleCollectionOverloaded. Gets multiple Schedules based on the criteria specified by QueryCriteria.And(..).
GetScheduleCollectionFromDataSet Gets a collection of Schedule from the already loaded records in this DataManager instance.
GetScheduleFromDataSet Gets a OleroTrainingBiz.Schedule from the already loaded records in this DataManager, by primary key.
GetStudent Gets a OleroTrainingBiz.Student based on the criteria specified by QueryCriteria.And(..).
GetStudentCollectionOverloaded. Gets multiple Students based on the criteria specified by QueryCriteria.And(..).
GetStudentCollectionFromDataSet Gets a collection of Student from the already loaded records in this DataManager instance.
GetStudentFromDataSet Gets a OleroTrainingBiz.Student from the already loaded records in this DataManager, by primary key.
GetTeacher Gets a OleroTrainingBiz.Teacher based on the criteria specified by QueryCriteria.And(..).
GetTeacherCollectionOverloaded. Gets multiple Teachers based on the criteria specified by QueryCriteria.And(..).
GetTeacherCollectionFromDataSet Gets a collection of Teacher from the already loaded records in this DataManager instance.
GetTeacherFromDataSet Gets a OleroTrainingBiz.Teacher from the already loaded records in this DataManager, by primary key.
GetType (inherited from Object)Gets the Type of the current instance.
NewContact Creates a new Contact.
NewCourse Creates a new Course.
NewEnrollment Creates a new Enrollment.
NewRoom Creates a new Room.
NewSchedule Creates a new Schedule.
NewStudent Creates a new Student.
NewTeacher Creates a new Teacher.
PopulateObjectsFromDataSet (inherited from DataManagerBase) 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 (inherited from DataManagerBase) Raised when CommitAll is called, after the data is committed.
Committing (inherited from DataManagerBase) 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

ExecuteSql (inherited from DataManagerBase)Overloaded. Executes the SQL against the current database.

See Also

DataManager Class | OleroTrainingBiz Namespace


="privmethod.gif">IBindingList.Find (inherited from CollectionTemplate