Good snippet code to remove all bin and obj folder
How does entity framework migration deal with DbContext?
In EntityFrameworkCore, if you want to create migration files for your DbContext, you would like to run a command like this > dotnet ef migrations add InitMigration Do you know how the 'migrations add' works? There are various ways to create DbContext in the migration, do you know that? In this article, I will give … Continue reading How does entity framework migration deal with DbContext?
What is the different between Session and Cookie
In Web programming, HTTP is stateless, so that by default HTTP won't allow you to share user's data across pages. Cookie and Session is the most basic technique of storing persistent data across page loads for a web visitor. There are much other storage like local storage, session storage, Indexed SQL, Web SQL, and more in … Continue reading What is the different between Session and Cookie
nvarchar(n) vs nvarchar(max) performance in MS-SQL Server
Yesterday, I received a question about the difference between nvarchar(n) and nvarchar(max). Why don't we always use nvarchar(max)? Are nvarchar(n) and nvarchar(max) different in performance ? Are nvarchar(n) and nvarchar(max) different in storage size ? First of all, What is nvarchar(n)? nvarchar [ ( n | max ) ] Variable-length Unicode string data. n defines the string … Continue reading nvarchar(n) vs nvarchar(max) performance in MS-SQL Server
Session vs Cookie/Token based authentication
TL;DR Session based authentication could be more secure but Token based authentication is faster and much easier to implement in mobile application. And You can implement Web-Farm with Token based easier than using Session. Session based authentication vs Token based authentication The introduction: You know that, HTTP is stateless protocol. Each request as an independent … Continue reading Session vs Cookie/Token based authentication
In 2017, Chrome marks HTTP pages as non-secure
According to Google Security Blog, Beginning in January 2017 (Chrome 56), we’ll mark HTTP pages that collect passwords or credit cards as non-secure, as part of a long-term plan to mark all HTTP sites as non-secure. So, Since January 2017 If your HTTP pages contain password/credit card field, Chrome will marks them as non-secured. This is … Continue reading In 2017, Chrome marks HTTP pages as non-secure
ASP .NET Core, phần 1 giới thiệu .NET CORE
Rất vui được gặp các bạn tại phần đầu tiên của series ASP .NET Core. Tại phần này mình sẽ không đề cập nhiều về việc lập trình, mình chỉ nói sơ qua hoàn cảnh và "sứ mệnh lịch sử" của .NET Core cũng như kiến trúc tổng quát của nền tảng này. Hoàn cảnh lịch sử … Continue reading ASP .NET Core, phần 1 giới thiệu .NET CORE