C# 클래스 Infrastructure.Data.EntityFramework.ObjectContextManager

파일 보기 프로젝트 열기: huyrua/efprs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultConnectionStringName string

Private Properties

프로퍼티 타입 설명
AddConfiguration void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
AddConfiguration ( string connectionStringName, string mappingAssemblies, bool recreateDatabaseIfExists = false, bool lazyLoadingEnabled = true ) : void

메소드 상세

CloseAllObjectContexts() 공개 정적인 메소드

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.
public static CloseAllObjectContexts ( ) : void
리턴 void

CurrentFor() 공개 정적인 메소드

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.
public static CurrentFor ( string key ) : ObjectContext
key string
리턴 ObjectContext

Init() 공개 정적인 메소드

public static Init ( string mappingAssemblies, bool recreateDatabaseIfExist = false, bool lazyLoadingEnabled = true ) : void
mappingAssemblies string
recreateDatabaseIfExist bool
lazyLoadingEnabled bool
리턴 void

Init() 공개 정적인 메소드

public static Init ( string connectionStringName, string mappingAssemblies, bool recreateDatabaseIfExist = false, bool lazyLoadingEnabled = true ) : void
connectionStringName string
mappingAssemblies string
recreateDatabaseIfExist bool
lazyLoadingEnabled bool
리턴 void

InitStorage() 공개 정적인 메소드

public static InitStorage ( IObjectContextStorage storage ) : void
storage IObjectContextStorage
리턴 void

프로퍼티 상세

DefaultConnectionStringName 공개적으로 정적으로 프로퍼티

The default connection string name used if only one database is being communicated with.
public static string DefaultConnectionStringName
리턴 string