mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-23 02:06:36 +08:00
更新控制器
This commit is contained in:
@@ -11,5 +11,24 @@
|
||||
string solutionsPath = Host.ResolveAssemblyReference("$(SolutionDir)");//获取解决方案路径
|
||||
Assembly assembly = Assembly.LoadFrom(System.IO.Path.Combine(solutionsPath, @"Yi.Framework.ApiMicroservice\bin\Debug\net5.0\Yi.Framework.Model.dll"));
|
||||
Type[] ts = assembly.GetTypes();
|
||||
|
||||
|
||||
#>
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Model
|
||||
{
|
||||
public partial class BaseContext :DbContext
|
||||
{
|
||||
<# foreach(var item in ts){
|
||||
|
||||
#>
|
||||
public DbSet<<#=item#>> <#=item#> { get; set; }
|
||||
<# } #>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user