Hi everybody,
given the following class:
public class Contact
{
public Contact()
{
ContactId = Guid.NewGuid();
}
public Guid ContactId { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public Guid? CategoryId { get; set; }
}
When I try to call Db.Contacts.All(), every NULL CategoryId in the database is set to Guid.Empty. Is it possible to have that property set to null?
Hi everybody,
given the following class:
When I try to call
Db.Contacts.All(), everyNULLCategoryId in the database is set toGuid.Empty. Is it possible to have that property set tonull?