另外我们现在使用的是emitMapper

解决方案 »

  1.   

    用EF6有一段时间了,但还真没用过存储过程,搜了下,搜到这篇文章,希望对你有所帮助:
    Code First Insert/Update/Delete Stored Procedures
      

  2.   

    我更希望使用的是那些exec procedures,
    存储过程已经存在了的。
    谢谢您了!
      

  3.   

    有ef查询的底层么?比如分页查询!,linq查询!
    谢谢!!!!!!!!!!!!!!!
      

  4.   

    有ef查询的底层么?比如分页查询!,linq查询!
    谢谢!!!!!!!!!!!!!!!
    我用这个repository模式,看文章最下面的generic reposiroty部分的代码:
    http://www.asp.net/mvc/tutorials/getting-started-with-ef-5-using-mvc-4/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application
      

  5.   

    调用存储过程的时候出现这种错!!!!!!!!
    An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.而从数据库中获取供应商信息时出错。这可以通过使用一个不正确的连接字符串实体框架造成的。检查内部异常的详细信息,并确保连接字符串是正确的。调用存储过程的时候出现这种错!!!!!!!!