Speed Test for Entity Framework (EF) Bulk Insert ( EF AddRabge VS EF Utility VS EF Extension)

Bulk Insert Speed Test In this post, we will discuss the bulk insert using Entity Framework (EF) in ASP.Net. we are going to compare three approaches using Entity Framework: EF AddRange(), EF Utility (https://github.com/MikaelEliasson/EntityFramework.Utilities) and EF Extension from http://entityframework-extensions.net/. Since EF Extension is not open source and owned by a company, I just show my result using its trial version and don’t want to make any troubles with that company. Maybe I made some mistakes in my coding or setting, you may using its trail

Continue Reading

IdentityServer4 Protecting an API using Passwords

1. About this Post In this post on IdentityServer4, we will continue our study from my last post “Creating ASP.NET Core Identity Using IdentityServer4 Visual Studio 2017” and the IdentityServer4 official documentation. We are going to discuss using user passwords with IdentityServer4. We are going to discuss using user passwords with IdentityServer4 based on our existing projects from my last post. You can find the solution source at my Github Repository. 2. Modify Identity Server Application Before modifying our code, let’s

Continue Reading

Creating ASP.NET Core Identity Using IdentityServer4 Visual Studio 2017

About this post In this post, we will follow the steps from IdentityServer4 official documentation to create ASP.NET Core Identity connect. The official walkthrough is here at http://docs.identityserver.io/en/release/quickstarts/0_overview.html. It is great but it skips some codes and detail setting. Here, I post my codes which follow that start documentation and I will give you more details about using IdentityServer4 to create the safe connection. To have a better understand, you need to read the official website for more details. When you

Continue Reading

.Net Core Project Building in VSTS & TFS 2015/2017 (Error MSB4041 Solution)

In this post, we will try using new Visual Studio Team Services(VSTS) or Team Foundation Server(TFS) to build our .Net Core Console project. If you get the Error “error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace. please go to the 4. Run Build in TFS” below directly to get the solution. VSTS is a service from Microsoft, offering the similar support from TFS. Therefore, you can enjoy almost the same services and functions

Continue Reading

Get Connection String From Visual Studio 2017 “Server Explorer”

Mostly, developers need to build their string when need to get the ConnectoinString to connect database. Instead, we introduce another approach using the Server Explore in newer version Visual Studio. To get the connection string, we need to add the database in our Server Explorer. Click “View” in the Visual Studio main menu, then click the “Server Explorer”. Now, right click the “Data Connections”, choose “Add Connections”. Then you can specify the data source type you want. Just like the

Continue Reading

Data Binding and Form Submission with .Net Core MVC Visual Studio 2017

Currently, Microsoft have release its Core 1.1 and we are sure there will be more supports in Core and related libraries. Maybe there have been newer versions when you read my post. In this post, we will discuss how to create a simple register form submission with Model and View data binding. To building this demo, this post from Ed Andersen gives me a lot help, if you have any question about data binding in .Net MVC, that blog will certainly help you.

Continue Reading

Site Footer