Beispiel #1
0
 /// <summary>
 /// Constructs SQL SELECT by matching between specified source column and target new adhoc column.
 /// </summary>
 /// <typeparam name="T">Type of lthe column.</typeparam>
 /// <param name="from">The source column.</param>
 /// <param name="to">The target new adhoc model.</param>
 /// <param name="name">Name to create the adhoc column.</param>
 /// <returns>This query builder for fluent coding.</returns>
 public DbQueryBuilder Select <T>(T from, Adhoc to, string name = null)
     where T : Column, new()
 {
     return(Select(from, to.AddColumn(from, false, c => c.DbColumnName = string.IsNullOrEmpty(name) ? from.DbColumnName : name)));
 }
 public new DbAggregateQueryBuilder Select <T>(T from, Adhoc to, string name = null)
     where T : Column, new()
 {
     base.Select(from, to, name);
     return(this);
 }