Skip to main content

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
TypeName
System.Objectid
Type Parameters
  • T

GetByIds<T>(ICollection)

View Source
Declaration
public IList<T> GetByIds<T>(ICollection ids)
Returns

IList<<T>>

Parameters
TypeName
ICollectionids
Type Parameters
  • T

Store<T>(T)

View Source
Declaration
public T Store<T>(T entity)
Returns

<T>

Parameters
TypeName
<T>entity
Type Parameters
  • T

StoreAll<TEntity>(IEnumerable<TEntity>)

View Source
Declaration
public void StoreAll<TEntity>(IEnumerable<TEntity> entities)
Parameters
TypeName
IEnumerable<<TEntity>>entities
Type Parameters
  • TEntity

Delete<T>(T)

View Source
Declaration
public void Delete<T>(T entity)
Parameters
TypeName
<T>entity
Type Parameters
  • T

DeleteById<T>(Object)

View Source
Declaration
public void DeleteById<T>(object id)
Parameters
TypeName
System.Objectid
Type Parameters
  • T

DeleteByIds<T>(ICollection)

View Source
Declaration
public void DeleteByIds<T>(ICollection ids)
Parameters
TypeName
ICollectionids
Type Parameters
  • T

DeleteAll<TEntity>()

View Source
Declaration
public void DeleteAll<TEntity>()
Type Parameters
  • TEntity

Dispose()

View Source
Declaration
public void Dispose()

Implements