public static EnterpriseDbContent GetCurrentContext()
 {
     EnterpriseDbContent context = CallContext.GetData("EnterpriseDbContent") as EnterpriseDbContent;
     if (context == null)
     {
         context = new EnterpriseDbContent();
         CallContext.SetData("EnterpriseDbContent",context);
     }
     return context;
 }
Beispiel #2
0
        public static EnterpriseDbContent GetCurrentContext()
        {
            EnterpriseDbContent context = CallContext.GetData("EnterpriseDbContent") as EnterpriseDbContent;

            if (context == null)
            {
                context = new EnterpriseDbContent();
                CallContext.SetData("EnterpriseDbContent", context);
            }
            return(context);
        }