asp.net mvc - MVC Entity Framework calling stored procedure -
i using asp.net mvc 4.5 , ef. import stored procedures ado.net entity data model. have .edmx
, xx.tt
storeprocedure_result.cs
.
i use
var result = dbcontext.sp(param).asenumerable().first();
my problem stored procedures have
select count(id) count table
doesn't appear on sp_result.cs
any ideas?
i tried out myself , did not see "_result.cs" class created either sproc returns count(). i'm guessing _result.cs class not need created because single int, , specific type not needed. still able call sproc though. obtain int this...
var result = db.getcount().first(); int = (int)result;
Comments
Post a Comment