locked
Sproc Support Needed in DBContext Yesterday RRS feed

  • Question

  • Adoption of EF DbContext is really  being slowed down by crummy support for stored procedures. This needs to change sooner rather than later.

    Paul


    Paul Litwin
    Thursday, October 27, 2011 5:31 PM

Answers

  • Hi Paul,

    Welcome!

    Sproc mapping isn't supported in DbContext, but you can use Context.Database.SqlQuery<T>("Sproc name"); I also hope DbContext can support it well. Thanks for understanding.

    Have a nice day.


    Alan Chen[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Alan_chen Tuesday, November 8, 2011 4:01 AM
    Friday, October 28, 2011 6:00 AM

All replies

  • Hi Paul,

    Welcome!

    Sproc mapping isn't supported in DbContext, but you can use Context.Database.SqlQuery<T>("Sproc name"); I also hope DbContext can support it well. Thanks for understanding.

    Have a nice day.


    Alan Chen[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Alan_chen Tuesday, November 8, 2011 4:01 AM
    Friday, October 28, 2011 6:00 AM
  • Hi,

    I am writing to check the status of the issue on your side.  Would you mind letting us know the result of the suggestions?

    If you need further assistance, please feel free to let me know.   I will be more than happy to be of assistance.

    Have a nice day.


    Alan Chen[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, November 4, 2011 6:34 AM