Свойство | Type | Description | |
---|---|---|---|
DefaultConnectionStringName | string |
Свойство | Type | Description | |
---|---|---|---|
AddConfiguration | void |
Méthode | Description | |
---|---|---|
CloseAllObjectContexts ( ) : void |
This method is used by application-specific object context storage implementations and unit tests. Its job is to walk thru existing cached object context(s) and Close() each one.
|
|
CurrentFor ( string key ) : ObjectContext |
Used to get the current ObjectContext associated with a key; i.e., the key associated with an object context for a specific database. If you're only communicating with one database, you should call Current instead, although you're certainly welcome to call this if you have the key available.
|
|
Init ( string mappingAssemblies, bool recreateDatabaseIfExist = false, bool lazyLoadingEnabled = true ) : void | ||
Init ( string connectionStringName, string mappingAssemblies, bool recreateDatabaseIfExist = false, bool lazyLoadingEnabled = true ) : void | ||
InitStorage ( IObjectContextStorage storage ) : void |
Méthode | Description | |
---|---|---|
AddConfiguration ( string connectionStringName, string mappingAssemblies, bool recreateDatabaseIfExists = false, bool lazyLoadingEnabled = true ) : void |
public static CloseAllObjectContexts ( ) : void | ||
Résultat | void |
public static CurrentFor ( string key ) : ObjectContext | ||
key | string | |
Résultat | ObjectContext |
public static Init ( string mappingAssemblies, bool recreateDatabaseIfExist = false, bool lazyLoadingEnabled = true ) : void | ||
mappingAssemblies | string | |
recreateDatabaseIfExist | bool | |
lazyLoadingEnabled | bool | |
Résultat | void |
public static Init ( string connectionStringName, string mappingAssemblies, bool recreateDatabaseIfExist = false, bool lazyLoadingEnabled = true ) : void | ||
connectionStringName | string | |
mappingAssemblies | string | |
recreateDatabaseIfExist | bool | |
lazyLoadingEnabled | bool | |
Résultat | void |
public static InitStorage ( IObjectContextStorage storage ) : void | ||
storage | IObjectContextStorage | |
Résultat | void |