September 2018 - Eg Net Solution

Here in this sites web and software developer can get some essential information.

MY Favorite .Net Question For Interview

This are not tidy. Just for rough. In Sha Allah will make it tiddy soon. 1.  DateTime2 Date range 0001-01-01 through 9999-12-31  vs Date...

Users Countries


Tuesday, September 11, 2018

ASP .NET MVC 5 Multi Tenant Example With New Project (Single Different Database For Per Tenant Using Entity Framework)

September 11, 2018 0
ASP .NET MVC 5 Multi Tenant Example With New   Project (Single Different Database For Per Tenant Using Entity Framework)

In the name of Allah, Most Gracious, Most Merciful بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيم

Welcome to Hamdoon Soft Fun: 
Here I just use this ASP .Net MVC5 application as Multitenant application with single database per tenant 
I am doing it from Windows 10 .

All code and supports can achieved from here https://github.com/ashikcse20 

And video is here : 

A. Technical Steps: 
1. Go to C:\Windows\System32\drivers\etc open hosts file with Sublime Text or Notepad with administarator mode. find # 127.0.0.1 localhost and replace it by the following instruction. 
# In hosts file a line starting with # is a comment line #The below line is an active line which make many alias of local host (remove the #) 127.0.0.1 localhost hamdoonsoft.com tenant1.hamdoonsoft.com tenant2.hamdoonsoft.com tenant3.hamdoonsoft.com 


Add Choice