Ok. WebMatrix.Data?
If you need easy access to the database, and you do not want to be bothered by openings, closures, etc. And your project does not need strongly typed objects.
This is what Jeffrey Palermo showed at MVCConf. Piece of code:
using WebMatrix.Data;
...
public IEnumerable<dynamic> Execute(){
Database db = Database.Open("EasyTimeTracking");
var employees= db.Query("select FullName, Startdate, EndDate from Employee");
return employees;
}
Is it enough to use the SQL material in C # instead of the old way? What do you think?
Agzam source
share