修改登录mfa nonedicom 、dbcontext

This commit is contained in:
2024-09-05 14:32:33 +08:00
parent 4f77d1bfb3
commit af1d85e65c
8 changed files with 85 additions and 82 deletions
+4 -3
View File
@@ -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));
}