public override void Init() { try { base.Init(); CurrentDatabase = BAL.Business.AppController.Instance["AbakTools"]; CurrentDatabase.Login(null, null, null); BAL.Business.AppController.ExceptionProcess = (ex) => { new AbakTools.Forms.ExceptionForm(ex).ShowDialog(); }; } catch { } }
public CRMContext(BAL.Business.App.IDatabase database) : base(database) { }
public HandelContext(BAL.Business.App.IDatabase database) : base(database) { Database.SetInitializer <HandelContext>(new DropCreateDatabaseIfModelChanges <HandelContext>()); }