예제 #1
0
        public AssetTypesController()
        {
            AssetzModel context = new AssetzModel();

            this.uowFactory = new EntityFrameworkUnitOfWorkFactory(context);
            this.repository = new EntityFrameworkRepository <AssetType>(context);
        }
예제 #2
0
        public UsersController()
        {
            AssetzModel context = new AssetzModel();

            this.uowFactory        = new EntityFrameworkUnitOfWorkFactory(context);
            this.repository        = new EntityFrameworkRepository <User>(context);
            this.AccountRepository = new EntityFrameworkRepository <Account>(context);
        }
예제 #3
0
        public VerificationEntriesController()
        {
            AssetzModel context = new AssetzModel();

            this.uowFactory      = new EntityFrameworkUnitOfWorkFactory(context);
            this.repository      = new EntityFrameworkRepository <VerificationEntry>(context);
            this.AssetRepository = new EntityFrameworkRepository <Asset>(context);
        }