ctp5:还创建存储过程
问题描述:
有没有办法我们也可以自动从dbcontext创建数据库中的SP(比如表)?
r there any way that we can also create SP( like tables) in DB from dbcontext automatically?
答
郑,
Code First目前不支持映射到存储过程。
我们打算添加支持,但可能不会进入第一个版本。
但是,如果我们添加支持,它可能只适用于映射到现有存储过程。如果我们自动为您创建存储过程,那么知道您希望在存储过程中看到什么将会很有趣。
Mapping to stored procedures is not currently supported by Code First. We intend to add support, but it may not make it into the first release. However, if we add support it will likely be only for mapping to existing to stored procedures. It would be interesting to know what you would like to see in the stored procedure if we created the stored procedure for you automatically.
谢谢,
Arthur