c # based framework for rapid development WebApi FastFramework

I. Introduction Framework

      This is the framework for the conduct in webapi development, project stratification is based on a hierarchical framework of ABP, pulled better business logic, ABP is based on the EF for data access layer, personally like Dapper, put the data access layer encapsulation Dapper become

        Use of technology include: WebApi, OAuth2, Dapper, Log4Net, Swagger, Autofac

        The display controller may be realized SwaggerUI described, increased debugging interface may be configured to verify the token SwaggerUI

        WebApi controller implements, Service Class may be injected through the associated IRepository constructor, IService

        

 

 

Second, the environment configuration

      1. Modify the connection string in Web.config

      2. When the changes WebApi publishing options, pay attention to see whether the release configuration xml file Swagger needed to copy

              

 

     3. The connection configuration request token, which is located in Web.config, the appSettings node tokenapiurl

         <add key="tokenapiurl" value="http://localhost:9080/oauth2/token" />

Third, the source download

      

 

Guess you like

Origin www.cnblogs.com/htsboke/p/11511159.html