ctp5:还创建存储过程 [英] ctp5: also create store procedure

查看:72
本文介绍了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


这篇关于ctp5:还创建存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆