ac3f34e4f3
Added .gitignore, solution, and project files for .NET 10. Introduced AGENTS.md and PLAN.md for guidelines and planning. Implemented appsettings.json, launchSettings.json, and MySQL config. Created AppDBContext and all domain models with composite keys. Added IUnitOfWork and EFUnitOfWork. Structured feature folders for Region, Route, Vehicle, Store, Warehouse, and Order with DTOs, repositories, services, and controllers. Added initial EF Core migrations and sample HTTP request. Registered dependencies and enabled OpenAPI in development.
14 lines
479 B
C#
14 lines
479 B
C#
namespace Distribution.Features.Order;
|
|
|
|
public interface IOrderRepository
|
|
{
|
|
Task<Models.Order?> GetByIdAsync(Guid id);
|
|
Task<List<Models.Order>> GetAllAsync();
|
|
Task AddAsync(Models.Order entity);
|
|
void Update(Models.Order entity);
|
|
void Remove(Models.Order entity);
|
|
Task<List<Models.OrderItem>> GetItemsByOrderIdAsync(Guid orderId);
|
|
Task<List<Models.Order>> GetByStoreIdAsync(Guid storeId);
|
|
Task AddItemsAsync(IEnumerable<Models.OrderItem> items);
|
|
}
|