TRUNGTQ

Think Big, Act Small, Fail Fast and Learn Rapidly

NAVIGATION - SEARCH

Using ASP.NET Core, Entity Framework Core and ASP.NET Boilerplate to Create NLayered Web Application (Part I)

A step by step guide to create a web application based on ASP.NET Core, Entity Framework Core and ASP.NET Boilerplate frameworks with automated tests. Download sample application (or see latest on github) Contents Introduction Prerequirements Create the Application Developing the Application Creating a Task Entity Adding Task to DbContext Creating the First Database Migration Creating the Database Task Application Service Testing the TaskAppService Task List View Adding a New Menu Item [More]

.NET Core Datagrid

.Net Core datagrid with server side paging, sorting and filtering Showing data in grid format is an important task for many web applications. This blog gives a demo of how to display data with the Bootstrap Table plug in. The demo shows advanced features like server side paging, filtering and sorting. Download demo - 680.5 KB Download latest demo With the demo application, I cover these aspects in more detail: Setup Bootstrap Table plug in Setup DataSource Table definition in cshtml file C [More]

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]