简体   繁体   English

适用于企业应用程序的ASP.NET Core 1.0

[英]ASP.NET Core 1.0 for enterprise applications

I am figuring out architectural components for my new web project. 我正在为我的新Web项目找出体系结构组件。 I am thinking to go with ASP.NET Core 1.0, EF7 stack. 我正在考虑使用ASP.NET Core 1.0,EF7堆栈。 Some people suggest that ASP.NET Core 1.0 is in it's initial stage and it's not recommended to use it in enterprise web applications presently. 有人建议ASP.NET Core 1.0尚处于起步阶段,目前不建议在企业Web应用程序中使用它。 Same opinions I heard in case of EF7 as well. 对于EF7,我也有同样的看法。

Mainly I want to know the disadvantages. 我主要想知道缺点。 Experts please explain the pros and cons of using ASP.NET Core 1.0 at present. 专家请说明当前使用ASP.NET Core 1.0的利弊。

Somewhere they are true and somewhere they are wrong. 在某些地方是正确的,在某些地方是错误的。 ASP.NET Core is targeted by 2 frameworks .NET Core and .NET Framework . ASP.NET Core有2个框架.NET Core.NET Framework Both options are available in Visual Studio. 这两个选项在Visual Studio中都可用。 You have to carefully choose, what is right for your project. 您必须仔细选择适合您的项目的项目。 Here are some differences\\suggestions with ASP.NET Core and EF Core (EF 7 previously): 以下是与ASP.NET Core和EF Core(以前是EF 7)的一些区别/建议:

  • All .NET Framework Libraries (BCL or FCL) are not yet available for CoreFx (.NET Core library) but soon they will be available as the .NET team announced. 所有.NET Framework库(BCL或FCL)尚未可用于CoreFx(.NET Core库),但随着.NET团队宣布,它们很快将可用。

  • If your project uses .NET Framework libraries such as MailMessage and others, the use ASP.NET Core targeted with .NET Framework not .NET Core then you will be able to get all the features of .NET Framework in your ASP.NET Core application. 如果您的项目使用的是.NET Framework库(例如MailMessage等),则使用针对.NET Framework的ASP.NET Core而不是.NET Core,那么您将能够在ASP.NET Core应用程序中获得.NET Framework的所有功能。 。

  • ASP.NET Core uses modern web work-flow for reducing page load times and for other attributes some of them are not available with the previous versions of ASP.NET. ASP.NET Core使用现代的Web工作流来减少页面加载时间,并且对于其他属性,ASP.NET的早期版本中不提供其中的一些属性。

  • EF Core 1.0 is new and cloud-optimized, it does not include (at least for now) featues which are available in EF 6.x such as Stored Procedures Mapping , Built-In feature for Seeding data and others. EF Core 1.0是新的并且已对云进行了优化,它(至少目前)不包括EF 6.x中可用的功能,例如存储过程映射用于播种数据的内置功能等。

If you want commercial projects that strongly rely on EF 6.x features which are not available now in EF Core, you can use ASP.NET Core 1.0 with .NET Framework with EF 6.x . 如果您希望商业项目高度依赖EF 6.x功能,而这些功能现在在EF Core中不可用,则可以将ASP.NET Core 1.0与.NET FrameworkEF 6.x结合使用 I've a websites also created with ASP.NET Core with .NET Framework. 我有一个网站也是使用ASP.NET Core和.NET Framework创建的。

Here are some documentations for using ASP.NET Core 1.0 with EF 6.x and suggestions. 以下是将ASP.NET Core 1.0与EF 6.x结合使用的一些文档和建议。

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

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