mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-01 14:46:37 +08:00
DDD 应用层完善
This commit is contained in:
@@ -4,8 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Core.Sqlsugar.Repository;
|
||||
using Yi.Framework.Ddd.Repository;
|
||||
using Yi.Framework.Core.Sqlsugar.Repositories;
|
||||
using Yi.Framework.Domain.Student.Entities;
|
||||
using Yi.Framework.Domain.Student.IRepository;
|
||||
|
||||
@@ -14,10 +13,15 @@ namespace Yi.Framework.Sqlsugar.Student
|
||||
/// <summary>
|
||||
/// 仓储实现方式
|
||||
/// </summary>
|
||||
public class StudentRepository : SqlsugarRepository<StudentEntity> ,IStudentRepository
|
||||
public class StudentRepository : SqlsugarRepository<StudentEntity>, IStudentRepository
|
||||
{
|
||||
public StudentRepository(ISqlSugarClient context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<List<StudentEntity>> GetMyListAsync()
|
||||
{
|
||||
return await _DbQueryable.ToListAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user