DataContext Methods |
The DataContext type exposes the following members.
Name | Description | |
---|---|---|
Any(SqlStatement) |
Represents the count function
| |
AnyTModel(ExpressionFuncTModel, Boolean) |
Returns only if only one result is available
| |
BeginTransaction |
Begin a transaction
| |
Close |
Close the connection however don't dispose
| |
Count(SqlStatement) |
Represents the count function
| |
CountTModel(ExpressionFuncTModel, Boolean) |
Returns only if only one result is available
| |
CreateSqlStatementBuilder(SqlStatement) |
Create sql statement
| |
CreateSqlStatementBuilder(String, Object) |
Create sql statement
| |
DeleteTModel |
Delete from the database
| |
DeleteAll(Type, SqlStatement) |
Delete from the database
| |
DeleteAll(Type, LambdaExpression) |
Update all
| |
DeleteAllTModel(ExpressionFuncTModel, Boolean) |
Delete from the database
| |
DeleteAllTModel(SqlStatement) |
Update all with specified Sql based statement
| |
Dispose |
Dispose this object
| |
Equals | (Inherited from Object.) | |
ExecQueryTModel |
Executes the query against the database
| |
ExecuteNonQuery(SqlStatement) |
Execute a non query
| |
ExecuteNonQuery(String, Object) |
Execute the specified SQL
| |
ExecuteProcedureTModel |
First or default returns only the first object or null if not found
| |
ExecuteScalarTReturn |
Returns only if only one result is available
| |
Exists(Type, Guid) |
Determines if modelKey of type type exists in the database
| |
ExistsTModel(TModel) |
Determines if obj exists in the database
| |
Finalize | (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
| |
GetHashCode | (Inherited from Object.) | |
GetQueryBuilder |
Query builder
| |
GetType | (Inherited from Object.) | |
InsertTModel |
Insert the specified object
| |
InsertAllTModel |
Bulk insert data
| |
InsertOrUpdateTModel |
Insert or update the specifed object
| |
InsertOrUpdateAllTModel |
Bulk insert data
| |
MemberwiseClone | (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 | |
SingleOrDefaultTModel |
Returns only if only one result is available
| |
ToString | (Inherited from Object.) | |
UpdateTModel |
Updates the specified object
| |
UpdateAll(Type, SqlStatement, LambdaExpression) |
Update all data with specified where clause
| |
UpdateAll(Type, LambdaExpression, LambdaExpression) |
Update all
| |
UpdateAllTModel(IEnumerableTModel) |
Bulk update data
| |
UpdateAllTModel(ExpressionFuncTModel, Boolean, ExpressionFuncTModel, Object) |
Updates the specified object
| |
UpdateAllTModel(IEnumerableTModel, FuncTModel, TModel) |
Bulk update data
| |
UpdateAllTModel(SqlStatement, ExpressionFuncTModel, Object) |
Update all with specified Sql based statement
| |
UpdateAllTModel, TUpdateModel(ExpressionFuncTModel, Boolean, ExpressionFuncTUpdateModel, Object) |
Update all data matching whereExpression to updateStatements |
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.) | |
Install |
Install the specified object
(Defined by SqlFeatureUtil.) | |
IsInstalled |
Returns true if the migration has been installed
(Defined by SqlFeatureUtil.) |