chetan shinde

chetan shinde

  • NA
  • 108
  • 45.7k

MVC Issue for SqlQu

Aug 29 2017 6:33 AM
Method not found: 'System.Collections.Generic.IEnumerable`1 System.Data.Entity.Database.SqlQuery(System.String, System.Object[])'.
I am doing
 
var query = db.Database.SqlQuery("exec [dbo].[sp_client_accounttransaction_details] @UserId,@mode", new SqlParameter("UserId", "2"), new SqlParameter("mode", "ALL")).ToList();

Answers (1)