views:

17

answers:

1

How can I call sp_executesql stored procedure in entity framework? I need to dynamically execute formulas stored in SQL Server table column using Select Statement. I tried ENTITY SQL but it does not work.

A: 

Use ObjectContext.ExecuteStoreCommand (requires EF 4).

Craig Stuntz