Execute complex raw SQL query in EF6

dbcontext entity-framework entity-framework-6 sql-server

Accepted Answer

You have to employ a DAO/DTO type:

class MyDAOType {
    public String S1 {get; set;}
    public String S2 {get; set;}
    //...
    public String S10 {get; set;}
}

the question

var result = db.Database.SqlQuery<MyDAOType>(query);    
6
11/19/2015 1:21:58 PM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow