model and Dto
This commit is contained in:
21
Hushian.Application/Contracts/IGenericRepository.cs
Normal file
21
Hushian.Application/Contracts/IGenericRepository.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Hushian.Application.Contracts.Persistence
|
||||
{
|
||||
public interface IGenericRepository<T> where T : class
|
||||
{
|
||||
IQueryable<T> Get();
|
||||
Task<T?> ADD(T entity);
|
||||
Task<ICollection<T>> ADD(ICollection<T> entities);
|
||||
Task<bool> ADDBool(T entity);
|
||||
Task<T?> UPDATE(T entity);
|
||||
Task<ICollection<T>> UPDATE(ICollection<T> entities);
|
||||
Task<bool> UPDATEBool(T entity);
|
||||
Task<bool> DELETE(T entity);
|
||||
Task<bool> DELETE(ICollection<T> entities);
|
||||
}
|
||||
}
|
14
Hushian.Application/Hushian.Application.csproj
Normal file
14
Hushian.Application/Hushian.Application.csproj
Normal file
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Common\Common.csproj" />
|
||||
<ProjectReference Include="..\Hushian.Domain\Hushian.Domain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Reference in New Issue
Block a user