When an exception such as 'Cannot convert SNull into string' is raised, can the name of the field it relates to be included in the message.
It depends.
In which situation, exactly, are you receiving such message? Do you have a call stack?
@wlandgraf , I'm getting this same error with a TDateTime field. It's not required. At the database it's not a "not null" column.
In my program I'm trying to set it to null using: MyEntity.MyDate.Value := Myentity.MyDate.Empty;
[Column('MyDateTime', [])]
FMyDateTime: Nullable<TDateTime>;
...
property MyDateTime: Nullable<TDateTime> read FMyDateTime write FMyDateTime;
Call stack:
Solved.
Instead of MyEntity.MyDate.Value := Myentity.MyDate.Empty;
I used: MyEntity.MyDate := Myentity.MyDate.Empty;