Property | Type | Description | |
---|---|---|---|
Add | RepositoryInstructionResult | ||
Get | T | ||
MethodA | void | ||
MethodB | void | ||
Update | RepositoryInstructionResult |
Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
Add ( item ) : RepositoryInstructionResult | ||
Get ( int id ) : T | ||
MethodA ( ) : void | ||
MethodB ( ) : void | ||
Update ( item ) : RepositoryInstructionResult |
public Disconnect ( ISession session ) : void | ||
session | ISession | |
return | void |
public Repository ( IDatabaseSessions databaseSessions, DbConnectionSessionType connectionType = DbConnectionSessionType.PostgresqlSession ) | ||
databaseSessions | IDatabaseSessions | |
connectionType | DbConnectionSessionType |
public SearchExact ( string keyword, Expression getNameExpression ) : IQueryable |
||
keyword | string | |
getNameExpression | Expression | |
return | IQueryable |