Esempio n. 1
0
 public BaseController()
 {
     try
     {
         //注册MEF
         Regisgter.regisgter().ComposeParts(this);
     }
     catch (Exception e)
     {
     }
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var oProgram = new Program();

            Regisgter.regisgter().ComposeParts(oProgram);
            var oUser = new TB_USERS()
            {
                USER_ID = "04acd48a819447d388b20dffb15f672e"
            };
            var oRole = new TB_ROLE()
            {
                ROLE_ID = "cccc"
            };

            oProgram.powerDomainService.AssignPower(oUser, oRole);

            var oBootstrapper = new Bootstrapper();

            oBootstrapper.StartServices();

            Console.ReadKey();
        }
Esempio n. 3
0
 public EFUnitOfWork()
 {
     //注册MEF
     Regisgter.regisgter().ComposeParts(this);
 }
Esempio n. 4
0
 public BaseService()
 {
     //注册MEF
     Regisgter.regisgter().ComposeParts(this);
 }
Esempio n. 5
0
 public PowerManageWCFService()
 {
     //注册MEF
     Regisgter.regisgter().ComposeParts(this);
 }
Esempio n. 6
0
 public EFBaseRepository()
 {
     Regisgter.regisgter().ComposeParts(this);
 }
Esempio n. 7
0
 public EFUnitOfWork()
 {
     //注册MEF
     Regisgter.regisgter().ComposeParts(this);
     EFContext.Configuration.AutoDetectChangesEnabled = false;//实体跟踪禁用
 }