修改登录mfa nonedicom 、dbcontext
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
using Fluid;
|
||||
using IRaCIS.Core.Infra.EFCore;
|
||||
using IRaCIS.Core.Test.Template;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Options;
|
||||
@@ -68,7 +69,7 @@ partial class Program
|
||||
|
||||
|
||||
// 要生成的表名数组
|
||||
var tableNames = new List<string> { "User", "Product", "Order" };
|
||||
var tableNames = new List<string> { "Product"/*, "Order"*/ };
|
||||
|
||||
try
|
||||
{
|
||||
@@ -79,7 +80,7 @@ partial class Program
|
||||
var fileName=Path.GetFileNameWithoutExtension(templateFilePath);
|
||||
|
||||
//模板放入具体的文件夹
|
||||
var folder = fileName == "Entity" ? "Entity" : fileName.Replace("Entity", "");
|
||||
//var folder = fileName == "Entity" ? "Entity" : fileName.Replace("Entity", "");
|
||||
|
||||
foreach (var tableName in tableNames)
|
||||
{
|
||||
@@ -101,7 +102,7 @@ partial class Program
|
||||
|
||||
//Console.WriteLine(template.Render(context));
|
||||
|
||||
string outputFilePath = Path.Combine(outPutTemplateFolderPath, folder, $"{fileName.Replace("Entity", tableName)}.cs");
|
||||
string outputFilePath = Path.Combine(outPutTemplateFolderPath, /*folder,*/ $"{fileName.Replace("Entity", tableName)}.cs");
|
||||
|
||||
File.WriteAllText(outputFilePath, template.Render(context));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user