Lean .NET stack for building modern web apps ASP.NET Core Lean .NET stack for building modern web apps Ivaylo Kenov Technical Trainer Software University https://softuni.bg © Software University Foundation – http://softuni.org This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.
The Trainer Ivaylo Kenov Various job titles at the same time: Contacts Mathematical competitions champion Full Stack Technical Trainer Senior Software Developer Solutions Architect & Technical Lead Owner of a Software Company One-man army @ https://MyTestedASP.NET {Insert Jot Title Here} Contacts https://github.com/ivaylokenov https://facebook.com/ivaylo.kenov https://linkedin.com/in/kenov
What Are We Going To Learn .NET Core Platform Cross-platform, Lightweight, Flexible ASP.NET Core Server Technology IIS, Kestrel, Middleware, Built-in IoC container ASP.NET Core MVC Framework Routing, Models, Controllers, Views, Web API Entity Framework Core Database Access Code First Only, Migrations, Database Access
Who Is This Lecture For This lecture is suitable for: All server-side developers C# developers ASP.NET MVC developers Everyone willing to learn!
Required Software Windows 10 (Linux, Mac) Go to http://dot.net and download .NET Core Visual Studio Community: https://www.visualstudio.com/vs/community/ Code: https://code.visualstudio.com/ GitHub (for support): https://github.com/aspnet https://github.com/aspnet/Mvc
.NET Core Platform
.NET Core Platform Different from the .NET Framework Open Source @ https://github.com/dotnet Modular components with minimal overhead Changes based on customer requests & requirements Different project structure – the project.json file Supports Console Apps, Class Libraries, Web Apps Automatic change watcher Command-Line Interface
.NET Core CLI Create new project with dotnet new Edit packages in project.json Restore them with dotnet restore Write some C# Start the application with dotnet run Be happy!
ASP.NET Core Server
ASP.NET Core Server Modular HTTP pipeline Supports middleware (like Node.js) Super lightweight and fast Cloud-ready environment configurations Self-hosted or IIS-hosted Supports both .NET Core and .NET Framework Built-in dependency resolver (with lifetime support)
ASP.NET Core MVC
ASP.NET Core MVC Framework Controllers – light and easy Routing – conventional and by attributes Models – enhanced model binding Built-in dependency resolver (with lifetime support) Views – good old Razor (on steroids – injectables, tag helpers, and view components) Web API – merged with MVC Areas – separate your separation Identity – built-in authentication & authorization support
Entity Framework Core
Entity Framework Core Database Access Code First only Supports non-relational databases No lazy-loading Explicit migrations only LINQ is same, but has some limitations
Thank You!
Introduction To ASP.NET Core https://softuni.bg/trainings/1434/node-js-development-september-2016 © Software University Foundation – http://softuni.org This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.
License This course (slides, examples, demos, videos, homework, etc.) is licensed under the "Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International" license Attribution: this work may contain portions from "End-to-end JavaScript Applications" course by Telerik Academy under CC-BY-NC-SA license © Software University Foundation – http://softuni.org This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.
Free Trainings @ Software University Software University Foundation – softuni.org Software University – High-Quality Education, Profession and Job for Software Developers softuni.bg Software University @ Facebook facebook.com/SoftwareUniversity Software University @ YouTube youtube.com/SoftwareUniversity Software University Forums – forum.softuni.bg © Software University Foundation – http://softuni.org This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.