entity framework - return custom object from stored procedure executed in EntityFramework, can't see object results -


i trying execute stored procedure using entity framework. i've tried below , returns correct amount of rows, when @ data in debug window, shows type, won't let me drill see actual values are.

sqlparameter param1 = new sqlparameter("@targetdate", filedate); var result = db.database.sqlquery<positionsheetcompresults>("dbo.comparepositionsheet @targetdate", param1); 

can tell me how this?

here results should return enter image description here

here class

    public class positionsheetcompresults {     public string acctnum { get; set; } 

you should write tolist<positionsheetcompresults>();

var result = db.database.sqlquery<positionsheetcompresults>("dbo.comparepositionsheet @targetdate", param1).tolist<positionsheetcompresults>();


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -