예제 #1
0
        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
 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;
 }