Giter VIP home page Giter VIP logo

asp.net-core-mvc's Introduction

Read Me

Instructions

How to create ASP.NET Core MVC in Visual Studio

  • start with creating BookViewModel.cs in your Models package.
  • list all required columns from your table.
  • Right-click Controllers > Add > Controller... > and choose [MVC Controller with views, using Entity Framework] to generate and scaffold all the CRUD web forms automatically.

How to deploy ASP.NET Core MVC to IIS

  1. Install the .NET Core SDK
  2. Install the .NET Core Hosting Bundle
  3. Restart IIS with: iisreset

Internet Information Services (IIS) Manager

  • Edit Application Pool
  • Name: mvc
  • .NET CLR version: No Managed Code
  • Managed pipeline mode: Integrated
  • [/]Start application pool immediately

Sites > mvc

  • Bindings...
  • Edit Site Binding
  • Type: http
  • IP address: All Unassigned (*)
  • Port: 82
  • Host name: (*)

web.config

Add below codes to your web.config

<aspNetCore processPath="dotnet" arguments=".\mvc.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess">
	<environmentVariables>
		<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
	</environmentVariables>
</aspNetCore>

Create new user to SQL Server

  • Security > right click > New > Login...
  • Login name: IIS APPPOOL\mvc
  • [/] Windows authentication
  • Default database: booksDb
  • Server Roles > Server roles: public
  • User Mapping > Users mapped to the login: booksDb
  • User Mapping > Database role membership for booksDb: public
  • Status > Settings > Permission to connect to database engine: Grant
  • Status > Settings > Login: Enabled
  • Click OK

asp.net-core-mvc's People

Contributors

harrysuke avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.