c# - The function evaluation requires all threads to run -
i have asp.net
mvc 5
application, want run raw query entityframe work
when run code bellow error:
the function evaluation requires threads run
my code:
using (var context = new mydbcontext()) { //var blogs = context.mysupportcontext.sqlquery("select * dbo.supports").tolist(); string myquery = "select id, fullname, sum(mins) mins (select t.id, fullname, numberofsupports* st.minutes mins from(select st.id, st.fullname, count(s.id) numberofsupports, s.supporttypeid supportteams stinner join supports s on s.responsibleid = st.idgroup st.id, st.fullname, s.supporttypeid) t inner join supporttypes st on st.id = t.supporttypeid) t group id, fullname "; var blogs = context.database.sqlquery<string>(myquery); string qstring= string.empty; if (blogs != null) { qstring= blogs.tostring(); } }
you should check out: https://blogs.msdn.microsoft.com/eliofek/2012/12/12/why-do-we-get-the-function-evaluation-requires-all-threads-to-run/
i couldn't comment here go answer
Comments
Post a Comment