需要帮助来决定我的项目的分层架构。 [英] Need help to decide layered architecture of my Project .

查看:52
本文介绍了需要帮助来决定我的项目的分层架构。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好, 


我的要求: 


1。 SQL Server中的数据库。 


2。 c#中的类库。 


3。应用程序之间的服务使用与数据交互。 


4。演示文稿可能是Winform,Web和移动(Window,Andriod,IOS)。 


现在我正在计划: 


1。在Sql server中创建数据库。 


2。首先使用DB实体框架approch。 


3。为所有实体创建存储库。 


现在我很难实现目标, 


我想创建服务并给它对演示文稿的服务,那么演示文稿,它们能够与数据交互。 


任何人都可以帮助我设计其架构,需要多少项目是创建,哪个项目引用需要添加到哪个项目中,意味着分层。


解决方案

你好,


如果你在web应用程序中做,例如,每件事都需要关闭耦合。应用程序如下:


mvc< ==>实体框架< ==> db。






Hello , 

My requirement : 

1. Database in SQL server . 

2. class library in c# . 

3. Services use between the applications to interact with Data  . 

4. Presentation may be Winform, Web and mobile (Window, Andriod, IOS) . 

Right now I am planing : 

1. Create the database into Sql server . 

2. Using Entity framework by DB first approch . 

3. Create the repository for all entities . 

Now here I am confused to achieve things , 

I want to create service and give this service to the Presentation , So what ever will be the presentation, they can able to interact with the data. 

Can anybody help me to design its architecture, that how many projects needs to be create , which project reference need to added into which project  means layer wise .

解决方案

hello there,

if you are doing in web application for example , every thing needs to closed coupled. The app follow is given below

mvc<==> entity framework <==> db.


这篇关于需要帮助来决定我的项目的分层架构。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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