Skip to main content

IEntityStore

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IEntityStore : IDisposable

Methods

GetById<T>(Object)

View Source
Declaration
T GetById<T>(object id)
Returns

<T>

Parameters
TypeName
System.Objectid
Type Parameters
  • T

GetByIds<T>(ICollection)

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

System.Collections.Generic.IList<<T>>

Parameters
TypeName
System.Collections.ICollectionids
Type Parameters
  • T

Store<T>(T)

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

<T>

Parameters
TypeName
<T>entity
Type Parameters
  • T

StoreAll<TEntity>(IEnumerable<TEntity>)

View Source
Declaration
void StoreAll<TEntity>(IEnumerable<TEntity> entities)
Parameters
TypeName
System.Collections.Generic.IEnumerable<<TEntity>>entities
Type Parameters
  • TEntity

Delete<T>(T)

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

DeleteById<T>(Object)

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

DeleteByIds<T>(ICollection)

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

DeleteAll<TEntity>()

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