public static DbContext CreateDbContext() { DbContext dbcontext = (DbContext)CallContext.GetData("dbContext"); if (dbcontext == null) { dbcontext = new JCZDEntities(); CallContext.SetData("dbContext", dbcontext); } return(dbcontext); }