1

I'm using Entity Framework 4.3.1 code-first. Is there any way to execute a stored procedure with parameters and get it's result value as a scalar? I find this method in DbContext:

public IEnumerable SqlQuery(Type type, string sql, params object[] parameters)

but I don't know how to use it. Thanks for any suggestion.

Lynn Crumbling
  • 12,985
  • 8
  • 57
  • 95
amiry jd
  • 27,021
  • 30
  • 116
  • 215
  • Duplicate: http://stackoverflow.com/questions/4845246/does-entity-framework-code-first-support-stored-procedures – Gert Arnold Mar 14 '12 at 12:38

0 Answers0