在整个asp.net应用程序中使用Oracle存储过程。 [英] Using Oracle stored procedure throughout the asp.net application.

查看:62
本文介绍了在整个asp.net应用程序中使用Oracle存储过程。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的公司希望在存储过程中尽可能地拥有逻辑,并且不希望我参与创建它们。这些表已经存在并且有一个系统分析员担心附加表和存储过程的创建。

1.在这种情况下,我可以使用实体框架作为我的asp.net应用程序吗?

2.如果我在没有实体框架的情况下一直使用存储过程,它是否会使应用程序工作/响应真的很慢?

3.我可以使用存储过程吗?实体框架?,但我认为存储过程中的所有逻辑都将被忽略?

4.如果我不能使用实体框架,那么什么是最好的安全使用的体系结构,以便我不必经常打开数据库连接,比如实体框架如何管理,我可以在没有实体框架的情况下使用Linq吗?

5.什么是数据访问块,我能用它与odp.net吗?

Hi,
My company wants to have the logic as much as possible in the stored procedure and do not want me to involve in creating them. The tables are already existing and have a system analyst to worry about the creation of the additonal tables and stored procedures.
1. In this case, can i use entity framework for my asp.net application?
2. Also does it make the application work/respond really slow if i use stored procedures all the time without entity framework?
3. Can i use stored procedures along with entity framework?, but i guess the point of having all the logic in the stored procedure will be neglected?
4. Just incase if i can''t use the entity framework, what is the best secure architecture to use so that i don''t have to open database connection very often, like how entity framework manages and can i use Linq without entity framework?
5. What is Data Access Blocks used for, can i use it with odp.net?

推荐答案





1.在这种情况下,我可以为我的asp.net应用程序使用实体框架吗?



是的,你可以使用实体框架工作。



2.如果我在没有实体框架的情况下一直使用存储过程,它是否会使应用程序工作/响应真的很慢?



不,不是真的。但是如果你使用via entity框架它会更快。



3.我可以使用存储过程和实体框架吗?但是我想要拥有所有的存储过程中的逻辑会被忽略吗?



是的,你可以使用via entity framework。但是如果你使用乐观锁定,你需要为此编写额外的代码。



4.如果我不能使用实体框架,那是什么使用最好的安全架构,以便我不必经常打开数据库连接,比如实体框架如何管理,我可以在没有实体框架的情况下使用Linq吗?



不,使用Linq和实体框架它会更快。



5.什么是数据访问块,我可以将它用于odp.net?



是的,使用odp.net作为数据块。
Hi,

1. In this case, can i use entity framework for my asp.net application?

Yes, you can use entity frame work.

2. Also does it make the application work/respond really slow if i use stored procedures all the time without entity framework?

No, not really. But If you use via entity framework it will be faster.

3. Can i use stored procedures along with entity framework?, but i guess the point of having all the logic in the stored procedure will be neglected?

Yes, you can use via entity framework. But if you are use optimistic locking you need to write extra code for that.

4. Just incase if i can''t use the entity framework, what is the best secure architecture to use so that i don''t have to open database connection very often, like how entity framework manages and can i use Linq without entity framework?

No, Use Linq along with entity framework it will be faster.

5. What is Data Access Blocks used for, can i use it with odp.net?

Yes, Use odp.net as your data block.


这篇关于在整个asp.net应用程序中使用Oracle存储过程。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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