2022-04-02 17:44:50 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2022-04-06 22:22:45 +08:00
|
|
|
|
using Yi.Framework.Common.Models;
|
2022-04-08 18:23:37 +08:00
|
|
|
|
using Yi.Framework.Model.Models;
|
2022-04-06 18:05:00 +08:00
|
|
|
|
using Yi.Framework.Model.Query;
|
2022-04-02 17:44:50 +08:00
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.Repository
|
|
|
|
|
|
{
|
2022-04-08 18:23:37 +08:00
|
|
|
|
public interface IRepository<T> : ISimpleClient<T> where T : BaseModelEntity,new()
|
2022-04-02 17:44:50 +08:00
|
|
|
|
{
|
|
|
|
|
|
public Task<T> InsertReturnEntityAsync(T entity);
|
|
|
|
|
|
public Task<List<S>> StoreAsync<S>(string storeName, object para);
|
2022-04-06 22:22:45 +08:00
|
|
|
|
public Task<PageModel<List<T>>> CommonPage(QueryCondition pars);
|
2022-04-02 17:44:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|