update 注册dapper
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Furion;
|
||||
using Dapper;
|
||||
using Furion;
|
||||
using Furion.DatabaseAccessor;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
@@ -15,6 +16,9 @@ namespace Ewide.EntityFramework.Core
|
||||
options.AddDb<DefaultDbContext>();
|
||||
options.AddDb<MultiTenantDbContext, MultiTenantDbContextLocator>();
|
||||
}, "Ewide.Database.Migrations");
|
||||
|
||||
// 注册dapper, 目前只能强行写死连接字符串和数据库程序集
|
||||
services.AddDapper(App.Configuration["ConnectionStrings:DefaultConnection"], SqlProvider.MySql);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user