C# 클래스 Repository, code

상속: IBoatInspectorRepository
파일 보기 프로젝트 열기: shendongnian/code 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Add RepositoryInstructionResult
Get T
MethodA void
MethodB void
Update RepositoryInstructionResult

공개 메소드들

메소드 설명
Delete ( entity ) : void

Delete an entity

Disconnect ( ISession session ) : void

Disconnect from the session. Accept parameter so we can use anywhere.

Flush ( ) : void

Method for flushing the session.

GetById ( Guid id ) : T

Retrieve an entity

Reconnect ( ISession session ) : void

Reconnect to the session. Accept parameter so we can use anywhere.

Repository ( IDatabaseSessions databaseSessions, DbConnectionSessionType connectionType = DbConnectionSessionType.PostgresqlSession )
Repository ( ISession session )
Respository ( MyDbContext db )
Save ( entity ) : void

Save an entity.

SearchExact ( string keyword, Expression getNameExpression ) : IQueryable
Update ( entity ) : void

Update an entity

비공개 메소드들

메소드 설명
Add ( item ) : RepositoryInstructionResult
Get ( int id ) : T
MethodA ( ) : void
MethodB ( ) : void
Update ( item ) : RepositoryInstructionResult

메소드 상세

Delete() 공개 메소드

Delete an entity
public Delete ( entity ) : void
리턴 void

Disconnect() 공개 메소드

Disconnect from the session. Accept parameter so we can use anywhere.
public Disconnect ( ISession session ) : void
session ISession
리턴 void

Flush() 공개 메소드

Method for flushing the session.
public Flush ( ) : void
리턴 void

GetById() 공개 메소드

Retrieve an entity
public GetById ( Guid id ) : T
id Guid
리턴 T

Reconnect() 공개 메소드

Reconnect to the session. Accept parameter so we can use anywhere.
public Reconnect ( ISession session ) : void
session ISession
리턴 void

Repository() 공개 메소드

public Repository ( IDatabaseSessions databaseSessions, DbConnectionSessionType connectionType = DbConnectionSessionType.PostgresqlSession )
databaseSessions IDatabaseSessions
connectionType DbConnectionSessionType

Repository() 공개 메소드

public Repository ( ISession session )
session ISession

Respository() 공개 메소드

public Respository ( MyDbContext db )
db MyDbContext

Save() 공개 메소드

Save an entity.
public Save ( entity ) : void
리턴 void

SearchExact() 공개 메소드

public SearchExact ( string keyword, Expression getNameExpression ) : IQueryable
keyword string
getNameExpression Expression
리턴 IQueryable

Update() 공개 메소드

Update an entity
public Update ( entity ) : void
리턴 void