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

Simple object context storage implementation
상속: IObjectContextStorage
파일 보기 프로젝트 열기: huyrua/efprs 1 사용 예제들

공개 메소드들

메소드 설명
GetAllObjectContexts ( ) : IEnumerable

Returns all the values of the internal dictionary of object contexts.

GetObjectContextForKey ( string key ) : ObjectContext

Returns the object context associated with the specified key or null if the specified key is not found.

SetObjectContextForKey ( string key, ObjectContext objectContext ) : void

Stores the object context into a dictionary using the specified key. If an object context already exists by the specified key, it gets overwritten by the new object context passed in.

SimpleObjectContextStorage ( ) : System

Initializes a new instance of the SimpleObjectContextStorage class.

메소드 상세

GetAllObjectContexts() 공개 메소드

Returns all the values of the internal dictionary of object contexts.
public GetAllObjectContexts ( ) : IEnumerable
리턴 IEnumerable

GetObjectContextForKey() 공개 메소드

Returns the object context associated with the specified key or null if the specified key is not found.
public GetObjectContextForKey ( string key ) : ObjectContext
key string The key.
리턴 ObjectContext

SetObjectContextForKey() 공개 메소드

Stores the object context into a dictionary using the specified key. If an object context already exists by the specified key, it gets overwritten by the new object context passed in.
public SetObjectContextForKey ( string key, ObjectContext objectContext ) : void
key string The key.
objectContext ObjectContext The object context.
리턴 void

SimpleObjectContextStorage() 공개 메소드

Initializes a new instance of the SimpleObjectContextStorage class.
public SimpleObjectContextStorage ( ) : System
리턴 System