コード例 #1
0
        private UnitOfWork(AmigooDbContext context)
        {
            _context = context;

            #region Initialize Repositories

            Accounts = new AccountRepository(_context);

            AccountAccess = new AccountAccessRepository(_context);

            Menus = new MenuRepository(_context);

            MenuCategories = new MenuCategoryRepository(_context);

            #endregion
        }
コード例 #2
0
 public static UnitOfWork Instance(AmigooDbContext context)
 {
     return(new UnitOfWork(context));
 }