45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Text;
|
|
|
|
namespace MyCode.Project.Generate.Template
|
|
{
|
|
public class TemplateForRepository:BaseTemplate
|
|
{
|
|
|
|
|
|
public TemplateForRepository(string tablename):base(tablename)
|
|
{
|
|
base.SavePath = Path.Combine(FileUtils.GetSolutionPath(), "MyCode.Project.Repositories", "ZHMD",$"{ClassName}Repository.cs");
|
|
|
|
base.TemplateContent = $@"using MyCode.Project.Repositories.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using MyCode.Project.Domain.Message;
|
|
using MyCode.Project.Domain.ZHMDModel;
|
|
using MyCode.Project.Infrastructure.Common;
|
|
using MyCode.Project.Infrastructure.Search;
|
|
using MyCode.Project.Domain.Repositories.ZHMDRepositories;
|
|
|
|
namespace MyCode.Project.Repositories.ZHMD
|
|
{{
|
|
public class {ClassName}Repository: WMSRepository,I{ClassName}Repository
|
|
{{
|
|
public {ClassName}Repository(WMSSqlSugarClient context) : base(context)
|
|
{{ }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}}
|
|
}}";
|
|
}
|
|
}
|
|
}
|