简体   繁体   English

如何从实体框架和面向服务的架构入手?

[英]How to start with entity framework and service oriented architecture?

At work I need to create a new web application, that will connect to an MySql Database. 在工作中,我需要创建一个新的Web应用程序,它将连接到MySql数据库。 (So far I only have expercience with Linq-To-Sql classes and MSSQL servers.) (到目前为止,我只对Linq-To-Sql类和MSSQL服务器有所了解。)

My superior tells me to use the entity framework (he probably refers to Linq-To-Entity) and provide everything as a service based architecture. 我的上级告诉我使用实体框架(他可能指的是Linq-To-Entity)并提供一切基于服务的架构。 Unfortunately nobody at work has experience with that framework nor with a real nice server oriented architecture. 不幸的是,没有人在工作中拥有该框架的经验,也没有真正优秀的面向服 This speficic project I'm leading will be long-term, meaning multiple years, so it would be best to design it the way, that multiple target plattforms like asp.net, c# wpf, ... could use it) 我所领导的这个特殊项目将是长期的,意味着多年,所以最好按照设计方式设计它,如asp.net,c#wpf等多个目标平台......可以使用它
For now, the main target plattform is ASP.net 目前,主要目标平台是ASP.net

So I do have the following questions: 所以我有以下问题:
1 ) Where can I read best what's really behind service oriented architecture (but for now beginner tutorials work fine as well) and how to use it in best practise? 1 )我在哪里可以最好地阅读面向服务架构背后的真正原因(但现在初学者教程工作正常)以及如何在最佳实践中使用它?
2 ) So far I can't see a real difference between Linq-To-Sql classes and the information I've googled so far on the 'entity framework'. 2 )到目前为止,我看不出Linq-To-Sql类和我迄今为止在'实体框架'上搜索的信息之间的真正区别。 So, whats the difference? 那么,差异是什么? Where do I find nice tutorials for it? 我在哪里可以找到很好的教程?
3 ) Is there any difference in the entity framework regarding the database server (MSSQL or MySQL)? 3 )关于数据库服务器(MSSQL或MySQL)的实体框架有什么不同吗? If not, does that mean that code snipperts I will stumble across will word database independent? 如果没有,这是否意味着我将偶然发现的代码片段将与数据库无关?
4 ) I do use Visual Studio 2010. Do I have to regard something specific? 4 )我确实使用Visual Studio 2010.我是否必须考虑具体的内容?

Also on the MSDN site are a great series of videos by Julie Lerman on EF 4.0 同样在MSDN网站上有Julie Lerman在EF 4.0上发布的一系列精彩视频

Videos 影片

Have you checked out the microsoft white papers? 你看过微软的白皮书吗? For example here . 例如这里

If I were leading a team on a project that size though I'd be looking to pick up some good books, and I'd be asking my employer to pay for them. 如果我带领一个团队参与一个规模虽然我想要拿起一些好书的项目,我会要求我的雇主付钱给他们。 Get on Amazon and see what has good reviews. 上亚马逊,看看有什么好评。 There's only so much you can pick up from the internet imho. 只有这么多你可以从互联网imho接收。

The idea is that this is meant to be as painless as possible. 这个想法是,这意味着尽可能无痛。

  1. Generate your entity model from source database(s) 从源数据库生成实体模型
  2. Publish using .Net Data Service 使用.Net数据服务发布
  3. Write client components to subscribe to the Data Service 编写客户端组件以订阅数据服务

I could explain how ll this works but i feel its best to let the experts say it all ... 我可以解释这是如何工作的,但我觉得最好让专家说出这一切......

http://msdn.microsoft.com/en-us/library/aa697427%28VS.80%29.aspx http://msdn.microsoft.com/en-us/library/aa697427%28VS.80%29.aspx

Sounds like a great project, good luck with it :) Hope this helps. 听起来像一个伟大的项目,祝你好运:)希望这会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM