抽象实体基类

This commit is contained in:
chenchun
2022-04-08 18:23:37 +08:00
parent 4472e4aa6f
commit 5b6ab486d7
5 changed files with 64 additions and 13 deletions

View File

@@ -6,11 +6,12 @@ using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Common.Models;
using Yi.Framework.Model.Models;
using Yi.Framework.Model.Query;
namespace Yi.Framework.Repository
{
public interface IRepository<T> : ISimpleClient<T> where T : class, new()
public interface IRepository<T> : ISimpleClient<T> where T : BaseModelEntity,new()
{
public Task<T> InsertReturnEntityAsync(T entity);
public Task<List<S>> StoreAsync<S>(string storeName, object para);