Data |
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 | |
|---|---|---|
| CommandTimeout | Overrides the command timeout for any command executed on this data context | |
| Connection | Connection | |
| ContextId | Gets or sets the context id | |
| Data | Temporary lookup values used during this context's use | |
| IsReadonly | True if the connection is readonly | |
| Transaction | Current Transaction |
| 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 | |
| CreateTableTTable | Create a table | |
| 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 | |
| DisableConstraints | Instructs the provider to disable constraints (such as foreign keys, check constraints, etc.) | |
| Dispose | Dispose this object | |
| DropTableTTable | Create a table | |
| Equals | Determines whether the specified object is equal to the current object. (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 | 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 | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetQueryBuilder | Query builder | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| InsertTModel | Insert the specified object | |
| InsertAllTModel | Bulk insert data | |
| InsertOrUpdateTModel | INSERT OR IGNORE 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 | |
| Query(Type, SqlStatement) | Non-generic implementation for query | |
| 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 | |
| RestoreConstraints | Instructs the provider to enable constraints (such as foreign keys, check constraints, etc.) | |
| SingleOrDefaultTModel | Returns only if only one result is available | |
| ToString | Returns a string that represents the current object. (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 | |
|---|---|---|
| AddOrUpdateData |
Adds or updates data on the context
(Defined by DataContextExtensions) | |
| ContainsStackEntry |
Returns true if the data stack contains an entry
(Defined by DataContextExtensions) | |
| 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) | |
| CreateInformationModelGuard |
Should be called when converting to information model to prevent stack overflows
(Defined by DataContextExtensions) | |
| EstablishProvenance |
Establish a provenance entry for the specified connection
(Defined by DataContextExtensions) | |
| GetProvenance |
Get provenance from the context
(Defined by DataContextExtensions) | |
| Install |
Install the specified object
(Defined by SqlFeatureUtil) | |
| IsInstalled |
Returns true if the migration has been installed
(Defined by SqlFeatureUtil) | |
| IsLoadingInformationModel |
Determine if the information model is loading
(Defined by DataContextExtensions) | |
| PeekData |
Set data on the context in a safe manner
(Defined by DataContextExtensions) | |
| PopData |
Set data on the context in a safe manner
(Defined by DataContextExtensions) | |
| PushData |
Set data on the context in a safe manner
(Defined by DataContextExtensions) | |
| ShouldDisableObjectValidation |
Should disable object validation
(Defined by DataContextExtensions) | |
| ValidateMaximumStackDepth |
Validate that the current context is under the maximum stack depth
(Defined by DataContextExtensions) | |
| WithControl |
With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions) |