示例#1
0
 public StoreSimpleClient(string connectionString)
 {
     this.connectionString = connectionString;
     mapper = new AbstractMapper(connectionString);
     mapper.isStronglyTyped = true;
     translator             = new QueryTranslator();
 }
 public Repository(string connectionString)
 {
     this.connectionString = connectionString;
     mapper = new AbstractMapper(connectionString);
     mapper.isStronglyTyped = true;
     translator             = new QueryTranslator();
 }
示例#3
0
 public StoreSimpleClient(string connectionString, DbContext context)
 {
     this.connectionString = connectionString;
     mapper = new AbstractMapper(connectionString);
     mapper.isStronglyTyped = true;
     mapper.RegisterDbContext(context);
     translator = new QueryTranslator();
 }
 public QueryObjectSimpleClient(string connectionString)
 {
     mapper   = new AbstractMapper(connectionString);
     strategy = new QueryObjectStrategy(typeof(T));
 }
示例#5
0
 public NonSimpleClient(string connectionString, DbContext context)
 {
     mapper = new AbstractMapper(connectionString);
     mapper.isStronglyTyped = false;
     mapper.RegisterDbContext(context);
 }
示例#6
0
 public NonSimpleClient(string connectionString)
 {
     mapper = new AbstractMapper(connectionString);
     mapper.isStronglyTyped = false;
     translator             = new QueryTranslator();
 }
示例#7
0
 public QueryObjectRepository(string connectionString)
 {
     mapper   = new AbstractMapper(connectionString);
     strategy = new QueryObjectStrategy(typeof(T));
 }