Posts

Showing posts from January, 2017

Xiaomi Mi Air 13.3 : How to change the operating system from Chinese to English

go to below link to do it legally http://en.miui.com/thread-338431-1-1.html

Using Unity framework in .net MVC

Image
Here I will just go about the approach needs to be taken when learning to use unity framework. Download the file   . This files explains from basics how and why to use unity. After learning this. Add Nuget Project Unity.MVC in your App. Once added It will add few dlls as below It will add a file as below  App_Start=> UnityMvcActivator.cs In the UnityWebActivator.Start method add a method call at the end. RegisterTypes ( container ); also create a method as below public   static   void  RegisterTypes ( IUnityContainer  container ) {            container . RegisterType < ICompanyRepository ,   CompanyRepository >(); } Add Company.cs class in the Models folder public   class   Company {      public   int  Id  {   get ;   set ;   }      public   string  Name  {   get ;   set ;   }      public   string  Category  {   get ;   set ;   } } Add Interface ICompanyRepository with below code public   interface   ICompanyRepository      {