Provides an automated way to reuse Entity Framework DbContext objects within the context of a single data portal operation. More...
Public Member Functions | |
void | Dispose () |
Dispose object, dereferencing or disposing the context it is managing. More... | |
Static Public Member Functions | |
static DbContextManager< C > | GetManager () |
Gets the ObjectContextManager object for the /// specified database. More... | |
static DbContextManager< C > | GetManager (string database) |
Gets the ObjectContextManager object for the specified database. More... | |
static DbContextManager< C > | GetManager (string database, string label) |
Gets the ObjectContextManager object for the specified database. More... | |
static DbContextManager< C > | GetManager (string database, DbCompiledModel model) |
Gets the ObjectContextManager object for the specified database. More... | |
static DbContextManager< C > | GetManager (string database, string label, DbCompiledModel model) |
Gets the ObjectContextManager object for the specified database. More... | |
static DbContextManager< C > | GetManager (ObjectContext context) |
Gets the ObjectContextManager object for the specified database. More... | |
static DbContextManager< C > | GetManager (ObjectContext context, string label) |
Gets the ObjectContextManager object for the specified database. More... | |
Properties | |
C | DbContext [get] |
Gets the DbContext object. More... | |
int | RefCount [get] |
Gets the current reference count for this object. More... | |
Provides an automated way to reuse Entity Framework DbContext objects within the context of a single data portal operation.
C | Type of database DbContext object to use. |
This type stores the object context object in Csla.ApplicationContext.LocalContext and uses reference counting through IDisposable to keep the data context object open for reuse by child objects, and to automatically dispose the object when the last consumer has called Dispose."
C | : | DbContext |
Definition at line 36 of file Csla.Data.EF6/DbContextManager.cs.
void Csla.Data.EF6.DbContextManager< C >.Dispose | ( | ) |
Dispose object, dereferencing or disposing the context it is managing.
Definition at line 241 of file Csla.Data.EF6/DbContextManager.cs.
|
static |
Gets the ObjectContextManager object for the /// specified database.
Definition at line 47 of file Csla.Data.EF6/DbContextManager.cs.
|
static |
Gets the ObjectContextManager object for the specified database.
context | The ObjectContext to wrap in DbContext |
Definition at line 123 of file Csla.Data.EF6/DbContextManager.cs.
|
static |
Gets the ObjectContextManager object for the specified database.
context | The ObjectContext to wrap in DbContext |
label | Label for this context. |
Definition at line 136 of file Csla.Data.EF6/DbContextManager.cs.
|
static |
Gets the ObjectContextManager object for the specified database.
database | Database name as shown in the config file. |
Definition at line 57 of file Csla.Data.EF6/DbContextManager.cs.
|
static |
Gets the ObjectContextManager object for the specified database.
database | Database name as shown in the config file. |
model | Database compiled model. |
Definition at line 79 of file Csla.Data.EF6/DbContextManager.cs.
|
static |
Gets the ObjectContextManager object for the specified database.
database | Database name as shown in the config file. |
label | Label for this context. |
Definition at line 68 of file Csla.Data.EF6/DbContextManager.cs.
|
static |
Gets the ObjectContextManager object for the specified database.
database | The database name or connection string. |
label | Label for this context. |
model | Database Compiled model. |
Definition at line 95 of file Csla.Data.EF6/DbContextManager.cs.
|
get |
Gets the DbContext object.
Definition at line 191 of file Csla.Data.EF6/DbContextManager.cs.
|
get |
Gets the current reference count for this object.
Definition at line 207 of file Csla.Data.EF6/DbContextManager.cs.