Innofactor / EfCoreJsonValueConverter

JSON ValueConverter for EF Core 3.0+
GNU Lesser General Public License v3.0
96 stars 17 forks source link

Ignored properties with JSON attribute are causing issues #7

Closed AlexEngblom closed 5 years ago

AlexEngblom commented 5 years ago

Issue appeared after moving to use clr-types for initializing json properties without explicit entity.Property(...) calls (issue #2 ). Since call to builder.AddJsonFields initializes properties besides their valueconverters, we should filter out properties that are marked as ignored. Otherwise it will result in failed model state.