Wednesday, August 5, 2015

Entity Framework to Class object null check

date time null is a common problem in EF, we can easily handle with this.

  if (pic.dbirthday != null)  
         bo.dbirthday = Convert.ToDateTime(pic.dbirthday.Value.Date.ToString("MM/dd/yyyy"));  

Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file

In my Xamarin form application their was dependency Restclient on Microsoft.Bcl.Build Microsoft.Bcl. i just remove all using nuget and ...