TRUNGTQ

Think Big, Act Small, Fail Fast and Learn Rapidly

NAVIGATION - SEARCH

ASP.NET Core, Angular2 Shopping Cart Using Web API And EF 1.0.1

In this article let’s see how to create a shopping cart using ASP.NET Core, Angular 2, Entity Framework 1.0.1 and Web API with Template pack . Download ASPCoreAngular2Shopping.zip - 2.4 MB Introduction In this article let’s see how to create a shopping cart using ASP.NET Core, Angular 2, Entity Framework 1.0.1 and Web API with Template pack . NoteKindly read our previous article which  explains in depth about Getting Started with ASP.NET Core Template Pack ASP.NET Core Ang [More]

ASP.NET Core : Overview Of Dependency Injection

Introduction A software developer writes a lot of code that is tightly coupled; and when complexity grows, the code will eventually deteriorate into spaghetti code; in other words, the application design being a bad design. Dependency Injection (DI) is a pattern where objects are not responsible for creating their own dependencies. Dependency Injection is a way to remove hard-coded dependencies among objects, making it easier to replace an object's dependencies, either for testing (using mock ob [More]

ASP.NET Core Entity Framework Core Code First: CRUD Operations

Introduction This article introduces how to perform the Create, Read, Update, and Delete (CRUD) operations in ASP.NET Core, using Entity Framework Core. This walk through will use the "Code First" development approach and create a database from model using migration. We can view this article's sample on TechNet Gallery. I would like to recommend the following wiki article Overview Of ASP.NET Core so that development environment be prepare for this sample application in ASP.NET Core. We will cr [More]

Onion Architecture In ASP.NET Core MVC Detail

Table of Contents   Introduction   Tight Coupling Loose Coupling   Advantages of Onion Architecture Why Onion Architecture Onion Architecture Layers   Domain Entities Layer Repository Layer Service Layer UI Layer   Onion Architecture Project Structure   OA.Data OA.Repo OA.Service OA.Web   Implement Onion Architecture   Domain Entities Layer Repository Layer Service Layer UI Layer   Create Application User Interface   User List View [More]

ASP.NET Core MVC: Authentication and Role Based Authorisation with Identity

Introduction A Visual Studio 2015 project which shows how to implement authentication and role based authorization with ASP.NET identity in the ASP.NET Core MVC application. The code illustrates the following topics: Listings, create, update and delete application roles. Listings, create, update and delete application users. Assign and update an application role to the application user. Login and Logout functionality. Role-based authorization. Access denied implemented for unauthorized users. R [More]

Building REST APIs using ASP.NET Core and Entity Framework Core

  SourceCode: dotnetcore-entityframework-api ASP.NET Core and Entity Framework Core are getting more and more attractive nowadays and this post will show you how to get the most of them in order to get started with building scalable and robust APIs. We have seen them in action on a previous post but now we have all the required tools and knowledge to explain things in more detail. One of the most key points we are going to show on this post is how to structure a cross platform API sol [More]

Real-time applications using ASP.NET Core, SignalR & Angular

aspnet-core-signalr-angular Blog post: Real-time applications using ASP.NET Core, SignalR & Angular Features explained Fire up an empty ASP.NET Core web application using yeoman Configure and install MVC and SignalR Server dependencies Install SignalR Client-Typescript dependencies Create SignalR hubs Integrate MVC Controllers (API) with SignalR Create the Angular-SignalR service to communicate with SignalR hubs Add Reccurent Tasks on a ASP.NET Core application Installation Instructions [More]

Cross-platform Single Page Applications with ASP.NET Core 1.0, Angular 2 & TypeScript

ASP.NET Core, Angular 2 & TypeScript Blog post:Cross-platform Single Page Applications using ASP.NET Core, Angular 2 and Typescript SourceCode: aspnet5-angular2-typescript Frameworks - Tools - Libraries ASP.NET Core Entity Framework Core Automapper Angular 2 Typescript Bootstrap 3 Gulp Bower Installation instructions - Part 1 (Applied for Windows/Linux/MAC) Install ASP.NET Core according to your development environment from here. Install NPM by installing Node.js. Install Bower, G [More]

Response Caching and In Memory Caching in ASP.NET Core 1.0

Response Caching and In Memory Caching in ASP.NET Core 1.0 Introduction ASP.NET 5 supports a couple of caching mechanisms to improve the performance and responsiveness of applications. Here are few options to implement cache at various levels. Response Cache In Memory Cache Distributed Caching in SQL Server or In memory cache server Currently ASP.NET 5 does not support Output Caching but it will be added in a future version. In this article we will explore Response Cache and In Memory Cache. [More]

ASP.NET Core, WEB API and Repository Class

In this article, we will see in detail about how to create ASP.NET Core with Repository pattern in the WEB API. Download ASPNETCOREWEBAPI.zip - 149.7 KB Introduction In this article, we will see in detail about how to create ASP.NET Core with Repository pattern in the WEB API. WEB API Web API is a simple and easy way to build HTTP Services for Browsers and Mobiles. It has the following four methods as Get/Post/Put and Delete where. Get is used to request for the data. (Select) Post is [More]

ASP.NET Core: compile once, host everywhere

How to host a cross-platform ASP.NET Core application Download aspcore.zip - 2.2 KB Introduction It is somehow the second part of a series about .NET Core. While in the first part (.NET Core: compile once, run everywhere) we learned the basic fact, how .NET Core can be used on different platforms, in this part I want to extend the idea to the hosting of the same web application on different platforms... Background You will find several samples of ASP.NET Core 'Getting started'. I create [More]