All,
I have a field called SynchDate in my Accounts table, which orignally was declared as not nullable. Once we started working the saves for this table, we realized that the field needed to be nullable. I tried changing the field to nullable, but the regen did not pick it up, so the declartion in the entity looked like:
public System.DateTime SynchDate = null;
Which results in this error: Cannot convert null to 'System.DateTime' because it is a value type (path)\Entities\AccountsBase.generated.cs 2469 44 (namespace).Entities
I tried adding new nullable fields and those worked just fine. Ultimately, I had to rename the field from SychDate to CrmSynchDate and it finally worked. Any thoughts on why this would occur? Is SynchDate a reserved netTiers/CodeSmith word?
Thanks,
Jesse