Think Big, Act Small, Fail Fast and Learn Rapidly



In our previous article we have seen how to startup with .Net Core. In this article we will take a look on database operation according to previous sample application based previous concept. Download - 5.6 MB Download - 1.6 KB If you are new to .Net Core, Please read previous post about .Net Core Startup In this article we are going to explore, Create Database Use Entity Framework Core (Db First Approach), Overview EF Core Install Entity Framework Create Mo [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]

Upgraded from project.json to csproj for SimplCommerce

Upgraded from project.json to csproj for SimplCommerce – Thien Nguyen – a developer Today, we have upgraded from project.json to csproj for SimplCommerce. It’s simple than what I have thought. In this blog post I will share you this journey. While working with ASP.NET Core in SimplCommerce, I felt in love with project.json. It’s an innovation, modern and simple. However, in order to make the tooling compatible with other .NET app models (WinForms, WPF, U [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]

Onion Architecture In ASP.NET Core MVC

Introduction A Visual Studio 2015 project which shows how to perform the create, read, update and delete operations in the ASP.NET Core MVC application using onion architecture with Entity Framework Core Code First approach. The code illustrates the following topics: Listings, create, update and delete operations. One to one relationship in Entity Framework Core. Create, Update and Delete operations perform in bootstrap modal pop up with tag helpers. Database design using entity framework core [More]


Một ứng dụng CMS viết bằng ASP.NET CORE, đáng để tham khảo. Weapsy is an ASP.NET Core CMS based on DDD and CQRS. Each writing operation is represented by a command. After the operation is completed successfully one or more events are published by an internal dispatcher. It's extremely easy to subscribe to domain events. Weapsy will be extendable with custom apps. An app can display content through modules added to dynamic pages or through static pages of the app itself. The first one incl [More]

ASP.NET MVC Solution Architecture – Best Practices

Bài viết hơi cũ, nhưng kiến trúc dạng này thuộc vào dạng ngon, đáng để tham khảo. SourceCode: mvcarchitecture Entity Framework Code First development Generic Repository Pattern Dependency Injection using Autofac framework Automapper Choosing the right architecture for Web Applications is a must, especially for large scale ones. Using the default Visual Studio ASP.NET MVC Web Application project templates, adding controllers with Scaffolding options, jus [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]

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

A step by step guide to create a layered 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 Developing the Application Creating the Person Entity Relating Person to the Task Entity Adding Person to DbContext Adding a New Migration for Person Entity Return Assigned Person in the Task List Change Unit Test to Test Assigned Person Show Assigned Person [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 - 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 - 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]

Distributed cache using Redis and ASP.NET Core

What is Redis ? Redis is a super fast non-relational database that uses keys to map to different data types. It is a key value data store (NoSQL) allowing to solve efficiently many different problem sets. Redis was created by Salvatore Sanfilippo in 2009, and Sanfilippo still remains the lead developer of the project today. It is a mature and hugely popular open source project, being used by many companies and in countless mission-critical production environments. Here is an interview with the i [More]

Creating Angular2 Application with ASP.NET Core Template Pack in VS 2015

Creating Angular2 Application with ASP.NET Core Template Pack in VS 2015 GitHub repository Introduction Let's create a Web Application with ASP.NET Core Template Pack in VS 2015, this template includes all configurations to work with Angular2 and ASP.NET Core Background Related to Web applications development, we need to integrate RESTful APIs with UI, now there is a final release for Angular2, so we'll work developing a web application that integrates ASP.NET Core with Angular2, so this tem [More]

Using MongoDB .NET Driver with .NET Core WebAPI

How to build step by step an ASP.NET Core WebAPI with latest MongoDB driver. The project supports all requests to MongoDB asynchronously. This is first part of building an Angular Notebook WebApp, presenting the backend. Download - 97.1 KB Source could be also accessed from GitHub -> Update 14 Dec 2016 Following Marcello's comment, I have added a basic level of exception management. Update 07 Dec 2016 I have extende [More]

Generating Stored Procedures with CatFactory.SqlServer

Sources:  CatFactory repository CatFactory.SqlServer repository Introduction CatFactory is a code generation engine and we can use to generate code in different ways, now we'll generate stored procedures from existing database. Background Usually, there are companies that are required to use stored procedures for read and write data in their databases, write the code for all stored procedures. It's a task that takes a long time, we find to reduce the time using a code generation for this [More]

EF Core for Enterprise

Introduction The design for enterprise architect is a common question in software development and how we can solve this issue in the best way following best practices. In this guide, we'll take a look at the common requirements for design of enterprise architect. Background The architecture for enterprise application should have the following levels: Entity Layer: Contains entities (POCOs) Data Layer: Contains all code related to database access Business Layer: Contains definitions and validati [More]

Execute Stored Procedure using Entity Framework Core in .NET Core Class Library Project

Execute stored procedure using Entity Framework Core in .NET Core Class library project Introduction In this article, I would like to show you how to execute the stored procedure in data access layer library core project. Prerequisites Make sure you have installed all the prerequisites in your computer. If not, then download and install all, one by one. First, download and install Visual Studio 2015 with Update 3 from this link. If you have Visual Studio 2015 and have not yet updated with upda [More]