Dapper-FluentMap
Dapper-FluentMap copied to clipboard
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
public class BadgeMapper : EntityMap<BadgeVM>
{
public BadgeMapper()
{
Map(p => p.Rank.Level)
.ToColumn("Rank_Level");
}
}
As in my previous ticket, I tried with just one mapping to see if it worked, but it is generating another error.
Do you have a full stack trace?
There is no stacktrace, as it is an exception generated by the visual studio itself. But this is easy to reproduce, because I believe that the component is not recognizing attributes of another class
I encountered this error when I have nested types in my mapping for CustomPropertyTypeMap. I tried to instantiate the nested type from the constructor, but to no avail.