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();