You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ILuCrud.cs 805B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. using Luticate2.Auth.Utils.Dbo.Fields;
  3. using Luticate2.Auth.Utils.Dbo.Pagination;
  4. using Luticate2.Auth.Utils.Dbo.Result;
  5. namespace Luticate2.Auth.Utils.Interfaces
  6. {
  7. // TODO async?
  8. public interface ILuCrud<TDbo>
  9. {
  10. LuResult<IList<TDbo>> Create(LuPartialFieldsDbo partialResponse, LuPartialFieldsDbo partialInput, IEnumerable<object> dbos);
  11. LuResult<LuPaginatedDbo<TDbo>> Read(LuPartialFieldsDbo partialResponse, LuPaginatedParamsDbo paginationParams);
  12. LuResult<IList<TDbo>> Update(LuPartialFieldsDbo partialResponse, LuPartialFieldsDbo partialInput, IEnumerable<object> dbos);
  13. LuResult<LuPaginatedDbo<TDbo>> Delete(LuPartialFieldsDbo partialResponse, LuPaginatedParamsDbo paginationParams);
  14. }
  15. }