40 lines
941 B
C#
40 lines
941 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Text;
|
|
|
|
namespace MyCode.Project.Generate.Template
|
|
{
|
|
public class TemplateForRepositoryInterface:BaseTemplate
|
|
{
|
|
|
|
|
|
public TemplateForRepositoryInterface(string tablename):base(tablename)
|
|
{
|
|
|
|
|
|
base.SavePath = Path.Combine(FileUtils.GetSolutionPath(), "MyCode.Project.Domain", "ZHMDRepositories",$"I{ClassName}Repository.cs");
|
|
|
|
base.TemplateContent = $@"using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using MyCode.Project.Infrastructure;
|
|
using MyCode.Project.Domain;
|
|
using MyCode.Project.Domain.ZHMDModel;
|
|
using MyCode.Project.Infrastructure.Common;
|
|
using MyCode.Project.Domain.Message;
|
|
|
|
namespace MyCode.Project.Domain.Repositories.ZHMDRepositories
|
|
{{
|
|
public interface I{ClassName}Repository
|
|
{{
|
|
|
|
}}
|
|
}}
|
|
";
|
|
}
|
|
}
|
|
}
|