ISqlDataContext Type
The main interface for SQL data context operations. This interface provides all the core functionality for querying, creating, updating, and deleting data through the SQL type provider. Users typically access this through the generated GetDataContext() method.
Instance members
| Instance member |
Description
|
Full Usage:
this.CallSproc
Parameters:
RunTimeSprocDefinition
arg1 : QueryParameter[]
arg2 : obj[]
Returns: obj
Modifiers: abstract |
Call stored procedure: Definition, return columns, values. Returns result.
|
Full Usage:
this.CallSprocAsync
Parameters:
RunTimeSprocDefinition
arg1 : QueryParameter[]
arg2 : obj[]
Returns: Task<SqlEntity>
Modifiers: abstract |
Call stored procedure: Definition, return columns, values. Returns result task.
|
Full Usage:
this.ClearPendingChanges
Modifiers: abstract |
Remove changes that are in context. |
|
Command timeout (in seconds)
|
Full Usage:
this.ConnectionString
Returns: string
Modifiers: abstract |
Connection string to database
|
|
return a new, unopened connection using the provided connection string
|
Full Usage:
this.CreateEntities
Parameters:
string
Returns: IQueryable<SqlEntity>
Modifiers: abstract |
|
|
|
Full Usage:
this.CreateRelated
Parameters:
SqlEntity
arg1 : string
arg2 : string
arg3 : string
arg4 : string
arg5 : string
arg6 : RelationshipDirection
Returns: IQueryable<SqlEntity>
Modifiers: abstract |
CreateRelated: instance, _, primary_table, primary_key, foreing_Table, foreign_key, direction. Returns entities
|
Full Usage:
this.GetIndividual
Parameters:
string
arg1 : obj
Returns: SqlEntity
Modifiers: abstract |
|
|
List changes that are in context.
|
Full Usage:
this.GetPrimaryKeyDefinition
Parameters:
string
Returns: string
Modifiers: abstract |
Give a tablename and this returns the key name
|
Full Usage:
this.IsReadOnly
Returns: bool
Modifiers: abstract |
Context meant to be read operations only
|
Full Usage:
this.ReadEntities
Parameters:
string
arg1 : ColumnLookup
arg2 : IDataReader
Returns: SqlEntity[]
Modifiers: abstract |
Read entity. Table name, columns, data-reader. Returns entities.
|
Full Usage:
this.ReadEntitiesAsync
Parameters:
string
arg1 : ColumnLookup
arg2 : DbDataReader
Returns: Task<SqlEntity[]>
Modifiers: abstract |
Read entity. Table name, columns, data-reader. Returns entities task.
|
Full Usage:
this.SaveContextSchema
Parameters:
string
Modifiers: abstract |
Save schema offline as Json
|
|
Operations of select in SQL-side or in .NET side?
|
|
Save entity to database.
|
Full Usage:
this.SubmitPendingChanges
Modifiers: abstract |
Save database-changes in a transaction to database. |
|
Save database-changes in a transaction to database.
|