public IList <T> List <T>(JoinTable table, params string[] orders) where T : new() { using (IConnectinContext cc = DBContext.GetConnection(DBContext.CurrentConnectionName)) { return(List <T>(table, cc, null, null)); } }
public IList <T> List <T>(JoinTable table, IConnectinContext cc, Region region, params string[] orders) where T : new() { TimeWatch.Start("Peanut->Express JoinTable to list"); SQL sql = new SQL(table.ToString()); if (this.SqlText.Length > 0) { sql.AddSql(" where " + this.ToString()); foreach (Command.Parameter p in this.Parameters) { sql.Parameter(p.Name, p.Value); } } if (orders != null && orders.Length > 0) { sql.AddSql(" order by " + string.Join(",", orders)); } IList <T> result = sql.List <T>(cc, region); TimeWatch.End(); return(result); }
public IList <T> List <T>(JoinTable table) where T : new() { return(List <T>(table, (string)null)); }
public IList <T> List <T>(JoinTable table, Region region) where T : new() { return(List <T>(table, region, null)); }
public IList <T> List <T>(JoinTable table, IConnectinContext cc) where T : new() { return(List <T>(table, cc, null, null)); }