@manhnguyenv

Welcome to my blog!

SqlLocalDB

December 7, 2018 09:07

Cách sử dụng SqlLocalDB (edit)

https://docs.microsoft.com/en-us/sql/tools/sqllocaldb-utility?view=sql-server-2017

https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/working-with-sql?view=aspnetcore-2.2

Start > Run > CMD

> SqlLocalDB.exe info
> SqlLocalDB.exe info v11.0
> SqlLocalDB.exe info MSSQLLocalDB

> sqllocaldb start

SQL Express 2012: (localdb)\v11.0

SQL Express 2014: (LocalDB)\MSSQLLocalDB

(localdb)\v11.0
(localdb)\MSSQLLocalDB

MVC Nerddinner, MVC Music Store

Visual Studio 2017, ASP.NET, Azure DevOps, and other Azure services

https://techbash.com/

Tối ưu mã HTML, CSS, JavaScript

August 4, 2018 16:39

Tối ưu mã HTML, CSS, JavaScript (edit)

Nén HTML và tối ưu hóa JavaScript

Sử dụng tool: https://csscompressor.net

Nén GZip với website ASP.NET 

Sử dụng tool: https://checkgzipcompression.com

https://thichchiase.com/web-design/nen-gzip-voi-website-asp-net-4-5-iis-8.html

Tối ưu hiệu suất và tốc độ website ASP.NET P1

Tối ưu hiệu suất và tốc độ website Asp.net P2

Tối ưu hiệu suất và tốc độ website Asp.net P3

Tối ưu hiệu suất và tốc độ website Asp.net P4

Tối ưu hiệu suất và tốc độ website Asp.net P5 

GZip trong ASP.NET MVC

https://weblog.west-wind.com/posts/2012/Apr/28/GZipDeflate-Compression-in-ASPNET-MVC

 

 

TDD with MVC Applications

July 30, 2018 23:08

TDD with MVC Applications (edit)

TDD With MVC 5 and Entity Framework and Repository pattern

https://code.msdn.microsoft.com/TDD-With-MVC-5-and-Entity-83ade5cf

Developing an ASP.NET MVC 4 Application for TDD using xUnit and Moq

https://github.com/dotnetcurry/tddusingxunit-dncmag-01

ASP.NET MVC 5 application with TDD using Unit testing framework (xUnit.NET) and Moking/Isolation framework (MOQ)

https://github.com/SanjeevForYou/TDDWithxUnitAndMOQ

TDD in ASP.NET MVC Applications with Moq Framework

https://kakimotonline.com/2011/02/13/tdd-in-asp-net-mvc-applications-with-moq-framework/

Unit Testing .NET Application with Moq Framework

https://kakimotonline.com/2011/01/02/unit-testing-net-application-with-moq-framework/

Test Driven Development in ASP.NET MVC 2

https://visualstudiomagazine.com/articles/2015/02/25/code-management-test-driven-dev.aspx

Test Driven Development in ASP.NET MVC 2

https://visualstudiomagazine.com/Articles/2015/05/14/Test-Driven-ASP-NET-MVC-2.aspx

TDD with .NET Core Web API

https://asp.net-hacker.rocks/2017/09/27/testing-aspnetcore.html

https://github.com/JuergenGutsch/blog/blob/master/_source/_posts/2017-09-27-testing-aspnetcore.md

 

 

Dapper Log4net AutoMapper

March 13, 2018 08:35

How to use the Dapper (edit)

- Create new ASP.NET Web Application called WebApplication1 (MVC: Web Forms, MVC, Web API) based on .NET Framework 4.5.2

- Nuget packages:

  + Install-Package log4net

  + Install-Package Dapper

  + Install-Package MySql.Data

  + Install-Package AutoMapper

  + Install-Package Newtonsoft.Json

- Web.config/App.config

  + Define connection string in <connectionStrings> or <appSettings>

- Controllers/HomeController.cs

- Documentation

Dapper with MS SQL Server

- Dapper with raw SQL

 

- Dapper with Stored Procedure

- Sample code

Dapper with MySQL

Nuget notes

+ .NET Framework 4.5
+ ASP.NET MVC 5.2
+ ASP.NET Web API 2.2
+ Web Pages 3.2

Update-Package
Install-Package jQuery -Version 1.12.4
Install-Package Bootstrap -version 3.3.7
Install-Package modernizr
Install-Package Newtonsoft.json
Install-Package log4net
Install-Package Dapper -Version 1.50.2 (.NET Framework 4.5)
Install-Package Microsoft.AspNet.WebApi (-Version 5.2.4)
Install-Package Swashbuckle (-Version 5.6.0)

Web API & Swagger + OAuth2
http://wmpratt.com/swagger-and-asp-net-web-api-part-1/

http://wmpratt.com/part-ii-swagger-and-asp-net-web-api-enabling-oauth2/

https://www.codeproject.com/Articles/1187872/Token-Based-Authentication-for-Web-API-where-Legac

http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/ 

ASP.NET Category

January 25, 2018 14:45

ASP.NET Category

https://blogs.technet.microsoft.com/wikininjas/2017/10/04/wiki-life-the-wait-is-over/

Points:

  • ASP.NET WebForm applications.
  • ASP.NET MVC applications.
  • ASP.NET Core
  • ASP.NET WEB API related topics
  • ASP.NET with combinations of JQuery, AJAX, JavaScript, AngularJs, Angular2, Angular4, Angular5 or any other scripting language
  • Languages can be VB.NET or C#.NET
  • Explain with images and source code, download links are a must for any application.

Syed Shanu

Email: syedshanumcain@gmail.com

http://shanucsharp.blogspot.kr

https://www.facebook.com/syed.shanu.9

https://www.facebook.com/ShanuCSharpDotNet/

https://www.codeproject.com/Articles/syed-shanu

http://www.c-sharpcorner.com/members/syed-shanu

https://mvp.microsoft.com/en-us/PublicProfile/5001980

ASP.NET Core 2 + Angular 5

https://github.com/MarkPieszak/aspnetcore-angular2-universal

*NEW* Angular 5.x Universal & ASP.NET Core 2.0 Advanced Starter - w/ server-side rendering for SEO, Bootstrap, i18n internationalization, TypeScript, unit testing, WebAPI REST setup, SignalR, Swagger docs, and more!

https://github.com/emonney/QuickApp

ASP.NET Core 2.0 / Angular 5 startup project template with complete login, user and role management. Plus other useful services for Quick Application Development

https://github.com/PacktPublishing/ASP.NET-Core-2-and-Angular-5

ASP.NET Core 2 and Angular 5, published by Packt

https://github.com/RobertDyball/A2SPA

SPA with ASP.NetCore 2 + Angular 4 + Bootstrap 4+ OpenIdDict

ASP.NET Core: Web API + Angular 4

http://www.c-sharpcorner.com/article/getting-started-with-asp-net-core-and-angular-4-using-web-api/

ASP.NET MVC: jQuery DataTables

http://www.c-sharpcorner.com/article/grid-view-with-server-side-advanced-search-using-jquery-datatables-in-asp-net-mv/

ASP.NET MVC: ASP.NET Identity + OWIN

http://bitoftech.net/2015/01/21/asp-net-identity-2-with-asp-net-web-api-2-accounts-management/

ASP.NET MVC: WEB API + Cookies

http://www.devcurry.com/2013/04/http-cookies-and-aspnet-web-api.html

http://www.binaryintellect.net/articles/0f52c5bf-b7a4-4720-9572-6159b1804d1d.aspx

ASP.NET MVC: ASP.NET Identity + OWIN + Cookies

http://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-1

http://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-2

Sourcehttps://github.com/benfoster/NakedIdentity

ASP.NET Core: ASP.NET Identity + Claims Based Identity + EF + Code First

http://sikorsky.pro/en/blog/aspnet-core-custom-user-manager

Sourcehttps://github.com/DmitrySikorsky/AspNetCoreCustomUserManager

ASP.NET MVC: Cookies + Web API

http://tostring.it/2012/12/03/manage-cookies-using-web-api/

ASP.NET MVC: Unit Testing with xUnit + Web API

http://tostring.it/2012/07/23/an-easy-way-to-write-an-integration-test-with-web-api/

ASP.NET Core: Unit Testing with xUnit

http://anthonygiretti.com/2018/01/19/code-reliability-unit-testing-with-xunit-and-fluentassertions-in-net-core-2-apps/

Dynamic Linq Queries

http://tomasp.net/blog/dynamic-linq-queries.aspx/

Database Samples

http://chinookdatabase.codeplex.com/

Chinook is a sample database available for SQL Server, Oracle, MySQL, etc. It can be created by running a single SQL script.

Chinook is a good name choice for a database that intents to be an alternative to Northwind.

ASP.NET CORE MIDDLEWARE

https://radu-matei.com/blog/aspnet-core-websockets-middleware/

First of all, it is important to understand what middleware is and how the new request pipeline works in ASP .NET Core, and there is a great article on that from the Official ASP .NET Core Documentation.

Middleware are software components that are assembled into an application pipeline to handle requests and responses. Each component chooses whether to pass the request on to the next component in the pipeline, and can perform certain actions before and after the next component is invoked in the pipeline. Request delegates are used to build the request pipeline. The request delegates handle each HTTP request.

Cấu hình IIS cho ứng dụng ASP.NET

June 28, 2017 22:01

Bước 01: Vào Start / Control Panel

Bước 02: Chọn Program and Features

Bước 03: Chọn Turn Windows features on or off , Chọn IIS (Internet Information Services) và chờ trong giây lát để Windows cài đặt dịch vụ

Bước 04: Đăng ký asp.net vào hệ thống với mã lệnh “aspnet_regiis –i” với quyền Administrator



Bước 05: Mở IIS bằng cách vào Start / Control Panel / Administrative Tools / chọn dịch vụ Internet Information Services (IIS) Manager

Bước 06: Tạo Application Pools phù hợp với .NET Framework v4.0.30319

Bước 07: Tạo Application để trỏ tới website ASPNET. Lưu ý: Website đã được Publish thành tập tin .DLL



Bước 08: Chạy website từ trình duyệt với 2 cách: thông qua IIS, thông qua trình duyệt Friefox, Google Chrome, …

Chúc bạn học tập tốt.

Categories

Recent posts