コード例 #1
0
ファイル: AdoNetUnitOfWork.cs プロジェクト: Pashkett/Learning
        public AdoNetUnitOfWork()
        {
            var connectionString =
                ConfigurationManager
                .ConnectionStrings[ConnectionStringName]
                .ConnectionString;

            context = new AdoNetContext(connectionString, true);
        }
コード例 #2
0
 public SupplierRepository(AdoNetContext context) : base(context)
 {
     this.context = context;
 }
コード例 #3
0
ファイル: Repository.cs プロジェクト: Pashkett/Learning
 public Repository(AdoNetContext context)
 {
     Context = context;
 }
コード例 #4
0
 public ProductRepository(AdoNetContext context) : base(context)
 {
     this.context = context;
 }
コード例 #5
0
 public CategoryRepository(AdoNetContext context) : base(context)
 {
     this.context = context;
 }