C-omega vs. TT
rows = select * from DB.Employees where City == city;
foreach( row in rows ) {
string name = row.LastName.Value;
int id = row.EmployeeID.Value;
Console.WriteLine( id.ToString() + ": " + name);
}
.NET forces you to write a lot of code to wrap around data sources with impedance mismatches. It would be great if they could address this sooner rather than later.
Until then, fortunately, there is the amazing Template Toolkit + DBI
q = DBI.prepare("select * from DB.Employees where City =?");
o.id + ":" + o.name FOREACH o = q.execute(city);
via Steve Eichert
2:34:29 PM
|