internal QueryBuilder(string tableName, IEnumerable <IMap> maps, IDbAdapter dbAdapter, Type domainType) { TableName = tableName; Parameters = new Dictionary <string, object>(); List <string> columns = new List <string>(); foreach (IMap map in maps) { columns.Add(dbAdapter.GetSelectColumnCast(domainType, tableName, map)); } SqlQuery = "SELECT " + string.Join(",", columns) + " FROM " + TableName + " "; }