I have an object of type Employee that has a Guid property. I know, if I want to set null, should I define the type property as nullable Nullable<Guid> prop or Guid? prop.
But in my case, I cannot change the type of support, so it will remain the same as the type of Guid, and my colleague, and I do not want to use Guid.Empty.
Is there a way to set my property as null or string.empty to restore the field in the database as null.
I have a mechanism for converting from string.empty to null, but I would change many things if I changed to accept an empty guid to null.
Any help please!
c # guid nullable
Maximus decimus
source share