public BaseController() { try { //注册MEF Regisgter.regisgter().ComposeParts(this); } catch (Exception e) { } }
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(); }
public EFUnitOfWork() { //注册MEF Regisgter.regisgter().ComposeParts(this); }
public BaseService() { //注册MEF Regisgter.regisgter().ComposeParts(this); }
public PowerManageWCFService() { //注册MEF Regisgter.regisgter().ComposeParts(this); }
public EFBaseRepository() { Regisgter.regisgter().ComposeParts(this); }
public EFUnitOfWork() { //注册MEF Regisgter.regisgter().ComposeParts(this); EFContext.Configuration.AutoDetectChangesEnabled = false;//实体跟踪禁用 }