Class RestEntityService<T, TEdit, TShow, TInsert, TList, TEntityInterface>
public class RestEntityService<T, TEdit, TShow, TInsert, TList, TEntityInterface> : RestEntityServiceBase<T, TEntityInterface>, IModelEntityService<T, TEdit, TShow, TInsert, TList>, IShowEntityService<T, TShow>, IEditEntityService<T, TEdit>, IListEntityService<T, TList>, IInsertEntityService<T, TInsert>, IEntityService<T> where T : class where TEdit : class where TShow : class where TInsert : class where TList : class where TEntityInterface : class
Type Parameters
T
TEdit
TShow
TInsert
TList
TEntityInterface
- Inheritance
-
RestEntityServiceBase<T, TEntityInterface>RestEntityService<T, TEdit, TShow, TInsert, TList, TEntityInterface>
- Implements
-
IModelEntityService<T, TEdit, TShow, TInsert, TList>IShowEntityService<T, TShow>IEditEntityService<T, TEdit>IListEntityService<T, TList>IInsertEntityService<T, TInsert>
Constructors
Methods
- GetEdit(IPrimaryKey, CancellationToken)
Gets the edit entity based on the specified primary keys.
- GetInsert(IPropertyValues, CancellationToken)
Gets the entity to be inserted based on the provided property values.
- GetShow(IPrimaryKey, CancellationToken)
Retrieves the show data for the specified keys.
- Insert(List<TInsert>, CancellationToken)
Inserts a list of entities into the data store.
- InsertList(List<TList>, CancellationToken)
Inserts a list of entities.
- ToList(QueryParameter<T>, CancellationToken)
Retrieves a list of entities based on the specified query parameters.
- ToListDistinct<TValue>(Expression<Func<T, TValue>>, Expression<Func<T, bool>>, CancellationToken)
Retrieves a distinct list of values based on the specified selector and filter.
- Update(List<TEdit>, CancellationToken)
Updates the list of entities.
- UpdateList(List<TList>, CancellationToken)
Updates a list of entities.