Based on some code, I work with this, it seems, like this. I could not find anything in the dapper documentation , which explicitly stated that it would not work with members that have get / set user logic, but I see this example:
public class Dog
{
public int? Age { get; set; }
public Guid Id { get; set; }
public string Name { get; set; }
public float? Weight { get; set; }
public int IgnoredProperty { get { return 1; } }
}
It seems that anyone with custom behavior, with a prefix, Ignoredcan assume that Dapper will not try to populate these values. It's true? Is this in the documentation and I just missed it?
source
share