如何使用ef6创建存储过程。代码第一 [英] how create Stored Procedure with ef6. code first

查看:245
本文介绍了如何使用ef6创建存储过程。代码第一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ima使用mvc5和ef6代码fisrt

i想要创建过程或函数使用cf或connect on procedure或function

with entity to linq

for exmple

i想创建过程serachadvance()并连接到webgrid

ima use mvc5 and ef6 with code fisrt
i want create Procedure or function with cf or connect on Procedure or function
with entity to linq
for exmple
i want create Procedure serachadvance() and connect to webgrid

推荐答案

我很确定你无法从中创建存储过程EF / CF。它并不意味着这一点。但是您可以使用它们(请参阅:代码优先存储过程 [ ^ ])。但我不建议这样做。
I am pretty sure you can not create stored procedure from EF/CF. It is not meant for that. You can use them however (see: Code First Stored Procedures[^]). But I wouldn't recommend that.


这篇关于如何使用ef6创建存储过程。代码第一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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