OrmLitePersistenceProvider
Allow for code-sharing between OrmLite, IPersistenceProvider and ICacheClient
Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public class OrmLitePersistenceProvider : object, IEntityStore
Properties
ConnectionString
View Source
Declaration
protected string ConnectionString { get; set; }
Connection
View Source
Declaration
public IDbConnection Connection { get; }
Fields
DisposeConnection
View Source
Declaration
protected bool DisposeConnection
connection
View Source
Declaration
protected IDbConnection connection
Methods
GetById<T>(Object)
View Source
Declaration
public T GetById<T>(object id)
Returns
<T>
Parameters
Type | Name |
---|---|
System.Object | id |
Type Parameters
T
GetByIds<T>(ICollection)
View Source
Declaration
public IList<T> GetByIds<T>(ICollection ids)
Returns
IList<<T>>
Parameters
Type | Name |
---|---|
ICollection | ids |
Type Parameters
T
Store<T>(T)
View Source
Declaration
public T Store<T>(T entity)
Returns
<T>
Parameters
Type | Name |
---|---|
<T> | entity |
Type Parameters
T
StoreAll<TEntity>(IEnumerable<TEntity>)
View Source
Declaration
public void StoreAll<TEntity>(IEnumerable<TEntity> entities)
Parameters
Type | Name |
---|---|
IEnumerable<<TEntity>> | entities |
Type Parameters
TEntity
Delete<T>(T)
View Source
Declaration
public void Delete<T>(T entity)
Parameters
Type | Name |
---|---|
<T> | entity |
Type Parameters
T
DeleteById<T>(Object)
View Source
Declaration
public void DeleteById<T>(object id)
Parameters
Type | Name |
---|---|
System.Object | id |
Type Parameters
T
DeleteByIds<T>(ICollection)
View Source
Declaration
public void DeleteByIds<T>(ICollection ids)
Parameters
Type | Name |
---|---|
ICollection | ids |
Type Parameters
T
DeleteAll<TEntity>()
View Source
Declaration
public void DeleteAll<TEntity>()
Type Parameters
TEntity
Dispose()
View Source
Declaration
public void Dispose()
Implements
- ServiceStack.Data.IEntityStore
IDisposable