![]() | DataContext Class |
Namespace: SanteDB.OrmLite
The DataContext type exposes the following members.
Name | Description | |
---|---|---|
![]() | DataContext(IDbProvider, IDbConnection) |
Creates a new data context
|
![]() | DataContext(IDbProvider, IDbConnection, Boolean) |
Creates a new data context
|
![]() | DataContext(IDbProvider, IDbConnection, IDbTransaction) |
Creates a new data context
|
Name | Description | |
---|---|---|
![]() | CacheOnCommit |
Cache on commit
|
![]() | CommandTimeout |
Overrides the command timeout for any command executed on this data context
|
![]() | Connection |
Connection
|
![]() | ContextId |
Gets or sets the context id
|
![]() | Data |
Data dictionary
|
![]() | IsReadonly |
True if the connection is readonly
|
![]() | LoadState |
Load state
|
![]() | Transaction |
Current Transaction
|
Name | Description | |
---|---|---|
![]() | AddCacheCommit |
Add cache commit
|
![]() | AddData |
Adds data in a safe way
|
![]() | Any(SqlStatement) |
Represents the count function
|
![]() | AnyTModel(ExpressionFuncTModel, Boolean) |
Returns only if only one result is available
|
![]() | BeginTransaction |
Begin a transaction
|
![]() | Count(SqlStatement) |
Represents the count function
|
![]() | CountTModel(ExpressionFuncTModel, Boolean) |
Returns only if only one result is available
|
![]() | CreateSqlStatement |
Create sql statement
|
![]() | CreateSqlStatement(String, Object) |
Create sql statement
|
![]() | CreateSqlStatementT |
Create SQL statement
|
![]() | DeleteTModel(TModel) |
Delete from the database
|
![]() | DeleteTModel(ExpressionFuncTModel, Boolean) |
Delete from the database
|
![]() | DeleteTModel(SqlStatement) |
Delete from the database
|
![]() | Dispose |
Dispose this object
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | ExecQueryTModel |
Executes the query against the database
|
![]() | ExecuteNonQuery |
Execute a non query
|
![]() | ExecuteProcedureTModel |
First or default returns only the first object or null if not found
|
![]() | ExecuteScalarTReturn |
Returns only if only one result is available
|
![]() | ExistsTModel |
Determines if obj exists in the database
|
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FirstOrDefault(Type, SqlStatement) |
First or default returns only the first object or null if not found
|
![]() | FirstOrDefaultTModel(ExpressionFuncTModel, Boolean) |
First or default returns only the first object or null if not found
|
![]() | FirstOrDefaultTModel(SqlStatement) |
First or default returns only the first object or null if not found
|
![]() | GetCacheCommit |
Add cache commit
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetQueryBuilder |
Query builder
|
![]() | GetQueryLiteral |
Query
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InsertTModel |
Insert the specified object
|
![]() | InsertAllTModel |
Bulk insert data
|
![]() | InsertOrUpdateTModel |
Insert or update the specifed object
|
![]() | InsertOrUpdateAllTModel |
Bulk insert data
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Open |
Open the connection to the database
|
![]() | OpenClonedContext |
Opens a cloned context
|
![]() | QueryTModel(ExpressionFuncTModel, Boolean) |
Execute the specified query
|
![]() | QueryTModel(SqlStatement) |
Query using the specified statement
|
![]() | QueryTModel(String, Object) |
Execute a stored procedure transposing the result set back to TModel |
![]() | ResetSequence |
Resets the specified sequence according to the logic in the provider
|
![]() | SingleOrDefaultTModel |
Returns only if only one result is available
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UpdateTModel(TModel) |
Updates the specified object
|
![]() | UpdateTModel(IEnumerableTModel, FuncTModel, TModel) |
Bulk update data
|
![]() | UpdateAllTModel |
Bulk update data
|
Name | Description | |
---|---|---|
![]() | ConvertTReturn |
The purpose of this method is to convert object me to TReturn. Why?
Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast
so we have to copy.
(Defined by ExtensionMethods.) |
![]() | GetInstanceOfTDomain |
Gets an instance of TDomain from me
(Defined by ModelExtensions.) |
![]() | Install |
Install the specified object
(Defined by SqlFeatureUtil.) |
![]() | IsInstalled |
Returns true if the migration has been installed
(Defined by SqlFeatureUtil.) |