模板重新生成可空类型

This commit is contained in:
陈淳
2023-01-06 11:12:47 +08:00
parent 576397a042
commit 29df3d658b
52 changed files with 573 additions and 478 deletions

View File

@@ -1,47 +0,0 @@
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Yi.Framework.Common.Exceptions;
using Yi.Framework.DtoModel.RABC.Student;
using Yi.Framework.DtoModel.RABC.Student.ConstConfig;
using Yi.Framework.Interface.RABC;
using Yi.Framework.Model.RABC.Entitys;
using Yi.Framework.Repository;
using Yi.Framework.Service.Base.Crud;
namespace Yi.Framework.Service.RABC
{
public class StudentService : CrudAppService<StudentEntity, StudentGetOutput, StudentListOutput, Guid, StudentCreateInput, StudentUpdateInput>, IStudentService
{
public void GetError()
{
throw new ApplicationException(StudentConst.);
}
public void GetError2()
{
throw new UserFriendlyException(StudentConst.);
}
/// <summary>
/// 校验配置项是否已存在
/// </summary>
/// <param name="key"></param>
/// <param name="id"></param>
/// <returns></returns>
/// <exception cref="UserFriendlyException"></exception>
//private async Task ValidateKeyAsync(string key, Guid? id = null)
//{
// Expression<Func<StudentEntity, bool>> expression = e => e.Name == key;
// if (id.HasValue)
// {
// expression = expression.And(e => e.Id != id.Value);
// }
// var existsData = await Repository.GetListAsync(expression);
// if (existsData != null)
// {
// throw new UserFriendlyException();
// }
//}
}
}