I am using virtual keyword for some of my properties for EF lazy loading. I have a case in which all properties in my models that are marked as virtual
virtual
To correct the answer of @Alexei, don't use the ForSourceMember method, like it's answered here in this issu on github. It's just for validation.
ForSourceMember
An other way is to use ForAllPropertyMaps like in this answer.
ForAllPropertyMaps