Exemplo n.º 1
0
 /// <summary>
 /// read records by filter
 /// </summary>
 /// <param name="where"></param>
 public TableReader(SqlExpr where)
 {
     this.reader = new TableReader(TableName, new SqlBuilder().SELECT().COLUMNS().FROM(TableName).WHERE(where).Clause);
 }
Exemplo n.º 2
0
 /// <summary>
 /// read all records in the database
 /// </summary>
 public TableReader()
 {
     this.reader = new TableReader(TableName);
 }
Exemplo n.º 3
0
 public static DPList <T> ToDPList <T>(this TableReader <T> reader) where T : class, IDPObject, new()
 {
     return(new DPList <T>(reader));
 }
Exemplo n.º 4
0
 /// <summary>
 /// writer table reader
 /// </summary>
 /// <param name="reader"></param>
 public TableWriter(TableReader <T> reader)
     : this(reader.Table)
 {
 }
Exemplo n.º 5
0
 public TableBulkCopy(TableReader reader)
 {
     this.tableReader = reader;
 }
Exemplo n.º 6
0
 /// <summary>
 /// construct from table reader
 /// </summary>
 /// <param name="tableReader"></param>
 public DPList(TableReader <T> tableReader)
     : base(tableReader.Table)
 {
 }