adamfoneil / Dapper.CX

A Crud library based on Dapper
MIT License
8 stars 1 forks source link

in SqlChartify, getting an error when saving with a "heavy" model class #28

Closed adamfoneil closed 4 years ago

adamfoneil commented 4 years ago

image

adamfoneil commented 4 years ago

I notice the SQL statement contains some unwanted columns:

image

This has to do with LoggedChangeTracker not ignoring [NotMapped] columns

adamfoneil commented 4 years ago

An easy way to solve this would be to surface AO.Models.SqlBuilder.GetMappedProperties so we can reliably exclude columns like this. See GetMappedProperties