C# - Lambda make Nullable<Int> = null if value is 0?
Posted on 2013-06-13
I have a property that I want to see if the value is 0 make it null. How do I do that? I have the one past making the value = 0 when null but then I need to revert back.
This is the first way making it 0:
BusinessGroupID = entity.BusinessGroupID.GetValueOrDefault(0),
Need to go the other way now.