OrmLiteCrudEvents<T>
Assembly: ServiceStack.Server.dll
View Source
Declaration
public class OrmLiteCrudEvents<T> : CrudEventsBase<T>, ICrudEvents, IRequiresSchema, IClearable where T : CrudEvent
Properties
ExcludePrimaryDb
Don't persist CrudEvent's in primary IDbConnectionFactory
View Source
Declaration
public bool ExcludePrimaryDb { get; set; }
NamedConnections
Additional DB Connections CrudEvent's should be persisted in
View Source
Declaration
public List<string> NamedConnections { get; }
Methods
ShouldRecord(CrudContext)
View Source
Declaration
public bool ShouldRecord(CrudContext context)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.CrudContext | context |
Record(CrudContext)
Record an CrudEvent Sync
View Source
Declaration
public virtual void Record(CrudContext context)
Parameters
Type | Name |
---|---|
ServiceStack.CrudContext | context |
RecordAsync(CrudContext)
Record an CrudEvent Async
View Source
Declaration
public virtual Task RecordAsync(CrudContext context)
Returns
Task
Parameters
Type | Name |
---|---|
ServiceStack.CrudContext | context |
GetEvents(IDbConnection)
Returns all rows in CrudEvent Table, lazily paging in batches of OrmLiteCrudEvents.BatchSize
View Source
Declaration
public virtual IEnumerable<T> GetEvents(IDbConnection db)
Returns
IEnumerable<<T>>
Parameters
Type | Name |
---|---|
IDbConnection | db |
GetEvents(IDbConnection, String, String)
View Source
Declaration
public virtual IEnumerable<T> GetEvents(IDbConnection db, string table, string id = null)
Returns
IEnumerable<<T>>
Parameters
Type | Name |
---|---|
IDbConnection | db |
System.String | table |
System.String | id |
InitSchema()
Create CrudEvent if it doesn't already exist
View Source
Declaration
public virtual void InitSchema()
Clear()
Delete all entries in CrudEvent Table
View Source
Declaration
public virtual void Clear()
Reset()
WARNING: DROP and RE-CREATE CrudEvent
View Source
Declaration
public virtual OrmLiteCrudEvents<T> Reset()
Returns
ServiceStack.OrmLiteCrudEvents<T>