标签:
public static DbContext CreateDbContext()
{
DbContext dbContext = (DbContext)CallContext.GetData("dbcontext");
if (dbContext == null)
{
dbContext = new JPKLEntities();
CallContext.SetData("dbContext", dbContext);
}
return dbContext;
}
标签:
原文地址:http://www.cnblogs.com/woxiangxin/p/4748758.html