更新仓储层上下文对象与接口命名规范

This commit is contained in:
chenchun
2022-04-12 18:09:13 +08:00
parent e7a27cc474
commit 796bba1abe
9 changed files with 57 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Yi.Framework.Interface;
@@ -10,6 +11,10 @@ namespace Yi.Framework.Service
{
public partial class UserService
{
public async Task<List<UserEntity>> DbTest()
{
return await _repository._Db.Queryable<UserEntity>().ToListAsync();
}
public async Task<bool> Exist(Guid id, Action<UserEntity> userAction = null)
{
var user = await _repository.GetByIdAsync(id);