Controlling read/write access to fields

百般思念 提交于 2019-12-09 07:42:28

I know this thread is one year old, but I'm wondering if it would make sense to have something like this:

 interface ReadOnlyA
 {
    object A { get; }
 }

 interface WriteableA : ReadOnlyA
 {
   new object A {get; set;}
 }

You can provide the read/write access at Service level and not at Entity level. In that case you can code generate a wrapper around services that handles the read/write access. Patterns used: Decorator, Dependency Injection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!