大版本更新
This commit is contained in:
@@ -17,6 +17,6 @@ namespace Yi.Framework.Repository
|
||||
public Task<List<S>> StoreAsync<S>(string storeName, object para);
|
||||
public Task<PageModel<List<T>>> CommonPage(QueryPageCondition pars);
|
||||
public Task<List<T>> GetListAsync(QueryCondition pars);
|
||||
public Task<bool> DeleteByLogic(List<Guid> ids);
|
||||
public Task<bool> DeleteByLogic(List<long> ids);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace Yi.Framework.Repository
|
||||
/// <returns></returns>
|
||||
public async Task<T> InsertReturnEntityAsync(T entity)
|
||||
{
|
||||
entity.Id =SnowFlakeSingle.instance.getID();
|
||||
return await Db.Insertable(entity).ExecuteReturnEntityAsync();
|
||||
}
|
||||
|
||||
@@ -38,7 +39,7 @@ namespace Yi.Framework.Repository
|
||||
/// 逻辑多删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task<bool> DeleteByLogic(List<Guid> ids)
|
||||
public async Task<bool> DeleteByLogic(List<long> ids)
|
||||
{
|
||||
var entitys = await Db.Queryable<T>().Where(u => ids.Contains(u.Id)).ToListAsync();
|
||||
entitys.ForEach(u=>u.IsDeleted=true);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Yi.Framework.Common\Yi.Framework.Common.csproj" />
|
||||
<ProjectReference Include="..\Yi.Framework.Model\Yi.Framework.Model.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user