C#.net中的数据访问层. [英] data access layer in C#.net.
本文介绍了C#.net中的数据访问层.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想了解C#.net 4.0中的数据访问层";谁能告诉我什么是数据访问层?它是如何工作的?我如何以简单的方式逐步开发数据访问层.以及如何在我的应用程序中使用它.
在此先感谢.
Hi all,
I want to learn about "Data Access Layer" in C# .net 4.0; any one can tell me what is data access layer is? how does it works ? how can i develop data access layer Step by Step in simple way. and how to use this in my application.
Thanks in advance.
推荐答案
如果不考虑特定的体系结构解决方案,这个问题就毫无意义.而且,如果不学习体系结构的其他部分,您几乎无法学习"这一层.
我建议您研究以下建筑模式( http://en.wikipedia.org/wiki /Architectural_pattern_(computer_science) [ ^ ] ):
MVVM —模型视图视图模型, 请注意这些架构的动机.如果了解了这一点,就可以了解特定图层的角色和更多详细信息.
http://en.wikipedia.org/wiki/Model_View_ViewModel [> http://en.wikipedia.org/wiki/Model-view-controller [ ^ ])),
MVA —模型视图适配器,
http://en.wikipedia.org/wiki/Model–view–adapter [ ^ ],
MVP —模型视图呈现器,
> http://en.wikipedia.org/wiki/Model-view-presenter [ ^ ].
—SA
The question makes no sense without considering of particular architectural solutions. And you hardly can "learn about" just this layer without learning other parts of architecture.
I suggest you study the following architectural patterns (http://en.wikipedia.org/wiki/Architectural_pattern_(computer_science)[^]):
MVVM — Model View View Model, Pay attention for the motivation of those architectures. If you understand it, you would be able to understand the roles of particular layers and further detail.
http://en.wikipedia.org/wiki/Model_View_ViewModel[^],
MVC — Model-View-Controller,
http://en.wikipedia.org/wiki/Model-view-controller[^]),
MVA — Model-View-Adapter,
http://en.wikipedia.org/wiki/Model–view–adapter[^],
MVP — Model-View-Presenter,
http://en.wikipedia.org/wiki/Model-view-presenter[^].
—SA
SAKryukov,
我知道MVVM模式,我使用过MVVM在我先前基于WPF的项目中,我还使用过数据访问层".数据访问层和连接由我的上级建立.我不明白这一点.因此需要数据访问层的基础知识以及如何实现这一点.
Hi SAKryukov,
I know about MVVM pattern, I have used MVVM In my previous project based on WPF, I also used "Data Access Layer" in that. Data Access Layer and Connection was established by my senior. i couldn''t understand that in detail. so want from basic knowledge of data Access layer, And How to implement that.
这篇关于C#.net中的数据访问层.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文