只读表 [英] Readonly tables
本文介绍了只读表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
说我正在使用现有的数据库。
可以读/写某些表数据。别人不应该写。
我正在使用EF4-CTP4。在某些桌面上执行只读政策的最佳策略是什么?
谢谢
Raffaele Rialdi [MVP]我的文章和视频:http: //www.iamraf.net意大利博客:http://blogs.ugidotnet.org/raffaele
解决方案
嗨Raffaele,
没有办法在EF中强制执行只读表,最好的选择是限制用于访问数据库的帐户的权限。
~Rowan
Say I'm working with an existent database.
Some table data can be read/written. Others should never be written.
I am working with EF4-CTP4. What's the best strategy to enforce a readonly policy on some table?
Thank you
Raffaele Rialdi [MVP] My articles and videos: http://www.iamraf.net Italian blog: http://blogs.ugidotnet.org/raffaele
解决方案
Hi Raffaele,
There isn't a way to enforce read only tables in EF, the best option is to restrict permission of the account used to access the database.
~Rowan
这篇关于只读表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文