修改代码生成测试代码

This commit is contained in:
不做码农
2021-11-24 14:30:21 +08:00
parent fdd7fea4c6
commit e4487c9f56
7 changed files with 132 additions and 118 deletions

View File

@@ -1,12 +1,5 @@
using Infrastructure;
using Infrastructure.Attribute;
using Infrastructure.Extensions;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZR.Common;
using ZR.Model.Models;
using ZR.Repository;
@@ -16,22 +9,19 @@ namespace ZR.Service.Business
/// 代码生成演示Service业务层处理
///
/// @author zr
/// @date 2021-09-27
/// @date 2021-11-24
/// </summary>
[AppService(ServiceType = typeof(IGendemoService), ServiceLifetime = LifeTime.Transient)]
public class GendemoService: BaseService<Gendemo>, IGendemoService
{
private readonly GendemoRepository _repository;
private readonly GendemoRepository _Gendemorepository;
public GendemoService(GendemoRepository repository)
{
_repository = repository;
_Gendemorepository = repository;
}
#region
public void Test()
{
_repository.Test();
}
#endregion
}
}

View File

@@ -7,10 +7,9 @@ namespace ZR.Service.Business
/// 代码生成演示service接口
///
/// @author zr
/// @date 2021-09-27
/// @date 2021-11-24
/// </summary>
public interface IGendemoService: IBaseService<Gendemo>
{
void Test();
}
}