1

Is there something like this in .net? https://laravel.com/docs/5.3/queries

//sample query
var users = DB::table('users')->select('name', 'email as user_email')->get();

And since this ORM doesn't need classes, I'm thinking it should return a List<Dictionary<string,object>> instead of List<User> where I can access the values via:

foreach(var user in users){
    //something like this
    Console.WriteLine("my name is "+user["name"]);
}
anaval
  • 1,130
  • 10
  • 24

0 Answers0