Step by step to build a .NET Core Web Application --- basic project structure

Foreword

 

With .NET Core matures,

I, as C # &. NET system is a part of the .NET Core also joined this system, with the continuous learning,

Exposure to a variety of increasingly complex framework, then I will of a novice point of view the whole building Web-based applications .NETCore 2.1 of process recorded for you novice learning

I will put the code on my GitHub  https://github.com/yingpanwang/websolution

Welcome criticism

 

 

Directory Structure

 

The current project is to build a structure

Auth Authority,

Ocelot  gateway,

WebClient1,2  as other sites,

 

Library of words

Common contains common class libraries, helper,

Common .IoC contains some Autofac some dependency injection module (Common individuals do not want to put it out of this layer alone),

DataProvider is stored in the context database (ORM using EFCore)

DTO some data transfer object

Entities Database Entity

IRepository, Repository storage interfaces and implementation (although the use of current ef core, but for some purposes (to hide the underlying implementation, or ..) so that a layer or a package

IService, Service  service interface and implementation

 

Involving framework

 

Logging component: NLog

Dependency injection assembly: Autofac

Identity component: IdentityServer4

ORM : EntityFrameworkCore

 

Since this is a novice to the article so after the new components involved when will continue to add, currently supports these components can have a simple project running.

 

To be continued ......

 

Guess you like

Origin www.cnblogs.com/ablewang/p/11583873.html