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,601
  • 8
  • 58
  • 92
amiry jd
  • 25,881
  • 27
  • 106
  • 207
  • Duplicate: http://stackoverflow.com/questions/4845246/does-entity-framework-code-first-support-stored-procedures – Gert Arnold Mar 14 '12 at 12:38

0 Answers0