C# 클래스 Core.DataBase.Helpers.DataRepositoryInMemory

Handles connections to and actions over an in-memory database.
상속: LoggerFluency, IDataRepository
파일 보기 프로젝트 열기: VitaliiAndreev/WarThunder_PresetRandomizer

보호된 프로퍼티들

프로퍼티 타입 설명
_lock object

공개 메소드들

메소드 설명
AddToNewObjects ( newObject ) : void
ClearNewObjects ( ) : void
CommitChanges ( IPersistentObject instance ) : void

Commits any changes to a specified object to the database.

DataRepositoryInMemory ( ) : Core.DataBase.Enumerations.Logger

Creates a new repository, as well as creates and configures a ISessionFactory for it.

Dispose ( ) : void

Releases unmanaged resources.

GetNewObjects ( ) : IEnumerable
PersistNewObjects ( ) : void

Persists any transient objects cached in the repository.

Query ( Func filter = null ) : IEnumerable

Reads instances (filtered if needed) of a specified persistent class from the database and caches them into a collection.

RemoveFromNewObjects ( IPersistentObject newObject ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged resources.

GetObjects ( ) : IEnumerable

비공개 메소드들

메소드 설명
InitializeNonPersistentFields ( instance ) : void

Initializes non-persistent fields of a persistent object. This method is required to finalize reading from a database.

메소드 상세

AddToNewObjects() 공개 메소드

public AddToNewObjects ( newObject ) : void
리턴 void

ClearNewObjects() 공개 메소드

public ClearNewObjects ( ) : void
리턴 void

CommitChanges() 공개 메소드

Commits any changes to a specified object to the database.
public CommitChanges ( IPersistentObject instance ) : void
instance IPersistentObject the object instance to create/update.
리턴 void

DataRepositoryInMemory() 공개 메소드

Creates a new repository, as well as creates and configures a ISessionFactory for it.
public DataRepositoryInMemory ( ) : Core.DataBase.Enumerations.Logger
리턴 Core.DataBase.Enumerations.Logger

Dispose() 공개 메소드

Releases unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool Indicates whether this method is being called from .
리턴 void

GetNewObjects() 공개 메소드

public GetNewObjects ( ) : IEnumerable
리턴 IEnumerable

GetObjects() 보호된 메소드

protected GetObjects ( ) : IEnumerable
리턴 IEnumerable

PersistNewObjects() 공개 메소드

Persists any transient objects cached in the repository.
public PersistNewObjects ( ) : void
리턴 void

Query() 공개 메소드

Reads instances (filtered if needed) of a specified persistent class from the database and caches them into a collection.
public Query ( Func filter = null ) : IEnumerable
filter Func The filter by which to query objects from the database.
리턴 IEnumerable

RemoveFromNewObjects() 공개 메소드

public RemoveFromNewObjects ( IPersistentObject newObject ) : void
newObject IPersistentObject
리턴 void

프로퍼티 상세

_lock 보호되어 있는 프로퍼티

protected object _lock
리턴 object