public static SContext Current() { var db = (SContext)CallContext.GetData("Dbcontext"); if (db == null) { db = new SContext(); CallContext.SetData("Dbcontext", db); } return db; }
public static SContext Current() { var db = (SContext)CallContext.GetData("Dbcontext"); if (db == null) { db = new SContext(); CallContext.SetData("Dbcontext", db); } return(db); }