NET building projects using the ABP framework

Source: Internet
Author: User

Net building a blog project using the ABP Framework (i)
There are a lot of learning net development of small partner construction projects are relatively vacant, what I use to develop? What frame do I use? How do I get a name? All sorts of problems, so that some lower, medium-sized engineers (even senior engineers) are very upset.
Recommend a turkey Daniel writes the framework of the ASP. NET boilerplate for short-sized projects (small and medium-sized items that represent 95% of projects unless your project has tens of millions of hard-to-use user requirements, or millions of concurrency). TKB to Jane has a brief introduction to ABP (also just translated in English), here I briefly introduce the ABP. ABP is the framework of a DDD model, it has a layered and modular structure, the framework itself contains authorization, authentication, exception handling, logging, localization, database connection management, Setup management, audit logs, etc. ABP is an open-source and document-friendly application framework, starting with the idea of "developing a framework that is common to all companies and developers!" ”。 It's not just a framework, it provides a robust system model based on DDD and best practices.

Okay, get to the point, open the official website http://www.aspnetboilerplate.com/

The first step, choose Multi Page Web application, we simple to single page development mode (common view development)
Second, select the Data Mapping Entity Framework (EF, Microsoft)
Third, remove the checked include module Zero (I don't like the user module he designed, not for the Chinese, so I'm going to develop it myself)
Fourth, enter your project name, I use Blog_solution

After filling it out, wait for the project to download successfully.

The first thing to open a project is to restore the NuGet package (I personally have obsessive-compulsive disorder, updated the old version of the NuGet package content). After we restore it, we rebuild the next project.

And then we re-examine the project.

I am here to explain the following 5 items:
Blog_solution.application reference layer for the implementation of business logic, data transformation projects;
Blog_solution.core core layer, I generally write the entity into this, including some auxiliary tools and other related content;
Blog_solution.entityframework data layer, the project that connects the database contains the migration, the update and so on;
Blog_solution.web presentation layer, generally I take him as my management background to deal with, the main application of the target operators
Blog_solution.webapi interface, suppose I need to do a multi-platform project to do data docking, such as Web, APP, etc.

We need to delete something, such as localizing the extra resources, we only use the two languages (Chinese, English). We remove other relevant language packs blog_solution.web/localization/blog_solution only leaves Blog_ Solution-zh-cn.xml and Blog_solution.xml, and open the Blog_solutionwebmodule class inside the App_start, remove the Japanese and Turkish language from the predecessor startup method and set the Chinese as the default language

            Configuration.Localization.Languages.Add(new LanguageInfo("en", "English", "famfamfam-flag-england")); Configuration.Localization.Languages.Add(new LanguageInfo("zh-CN", "简体中文", "famfamfam-flag-cn",true));
    • 1
    • 2

Then set the web as the startup item to run, we will find that the language pack is only two left, and the Chinese language is the default languages such as:

Net building projects using the ABP framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.