ASP. Mvc5+ef6+easyui Admin System (4)-Create project Solution

Source: Internet
Author: User

Series Catalogue


In order to conform to the later reconstruction system, the article was rewritten in 2016-11-1

Terminology in design, concepts such things are too vague, we must learn to accumulate to recognize these conceptual models.

I can not use the article to detailed analysis of the deep concept of this system, need everyone in the daily work of practice and tacit,

Recommend a. NET design book,Microsoft. NET Enterprise Application Architecture Design This book describes in detail interface programming, aspect-oriented programming

Building a solution

Now let's start building our solution by building a class library, respectively.

  • APPS.BLL (Business layer)
  • APPS.IBLL (Business layer Interface)
  • Apps.dal (data tier)
  • Apps.idal (data-tier interface)
  • Apps.models (model)
  • Apps.common (General class Library)
  • Apps.core (Core class library)
  • Apps.locale (Multi-language file)
  • Apps.webapi (WEBAPI)
  • Apps.web (UI layer)
Add EF Entity Data Model

To create an EF model in the Apps.models class library

Select an empty model, then add entities (tables, stored procedures, etc.) after we create the database

Create a new database: Appsdb, and create a simple table, let's see how it's Used

CREATE TABLE [dbo]. [Syssample] ([Id] [varchar] () not null,[name] [varchar] (null,[age] [int] null,[bir] [datetime] null,[photo] [varchar] () NULL, [Note] [Text] Null,[createtime] [datetime] null,constraint [pk__syssampl__3214ec075aee82b9] PRIMARY KEY CLUSTERED

The idea of ORM is to map the data of tables in a relational database into objects as objects, so that developers can translate the operations of the database into operations on those objects.

Create a new connection-----select Microsoft SQL Server

Summary of results

If you're familiar with the three-tier architecture, you can now reference the relationship between projects.

ASP. Mvc5+ef6+easyui Admin System (4)-Create project Solution

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: 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.