model and Dto

This commit is contained in:
mmrbnjd
2025-06-28 15:31:07 +03:30
parent 1f6ca5ee5f
commit c0b47129d4
38 changed files with 905 additions and 0 deletions

View 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);
}
}

View 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>