wsd_djy/WebSiteCode/Cmdjy/Cmdjy/Dal/DbContextFactory.cs

15 lines
346 B
C#

namespace Cmdjy.Dal
{
/// <summary>
/// 数据上下文工厂
/// </summary>
public class DbContextFactory
{
/// <summary>
/// 获取代煎药数据库
/// </summary>
public static DjyDbContext CreateDbContext() {
return DjyDbContext.GetContext();
}
}
}