コード例 #1
0
ファイル: UnitOfWork.cs プロジェクト: KristiyanVachev/Leaf
        public UnitOfWork(ILeafDbContext dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException("dbContext cannot be null");
            }

            this.dbContext = dbContext;
        }
コード例 #2
0
ファイル: Repository.cs プロジェクト: KristiyanVachev/Leaf
        public Repository(ILeafDbContext dbContext)
        {
            Guard.WhenArgument(dbContext, "dbContext cannot be null").IsNull().Throw();

            this.dbContext = dbContext;
        }