Created API Controllers (#1)
Removed strongly typed inventory objects Added EAV inventory types Added EAV object handling philosophy Added controllers Added EF Core migration integration Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
namespace WyvernInventory.Core.Interfaces.Repos;
|
||||
|
||||
public interface IDbObjectRepo<T>
|
||||
public interface IDbObjectRepo<T, TDto>
|
||||
{
|
||||
public Task<List<T>> GetAsync(Predicate<T>? filter = null);
|
||||
public Task<List<TDto>> GetAsync(List<T>? filterList = null);
|
||||
public Task<(int created, int updated)> UpsertAsync(List<T> items);
|
||||
public Task DeleteAsync(List<T> items);
|
||||
public Task<int> DeleteAsync(List<T> items);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using WyvernInventory.Core.Models;
|
||||
|
||||
namespace WyvernInventory.Core.Interfaces.Repos;
|
||||
|
||||
public interface IInventoryItemRepo
|
||||
{
|
||||
public Task<List<InventoryItemDto>> GetAsync(List<InventoryItemRequest>? filterList = null);
|
||||
public Task<(int created, int updated)> UpsertAsync(List<InventoryItemRequest> items);
|
||||
public Task<int> DeleteAsync(List<InventoryItemRequest> items);
|
||||
}
|
||||
Reference in New Issue
Block a user