EntityFramework.MemoryJoin icon indicating copy to clipboard operation
EntityFramework.MemoryJoin copied to clipboard

Support for edmx entities

Open mariophill opened this issue 4 years ago • 0 comments

The key field property is not getting filtered out from the allowedPropertyMapping dictionary values since edmx entities do not have the KeyAttribute. Are you able to filter this out by doing something like the following in the GetEntityMapping method? I tested it out by moving the following code block just below where you get the pkColumnName and adding the filter and it worked.

var allowedProperties = new HashSet<PropertyInfo>( allowedPropertyMapping.SelectMany(x => x.Value).Where(a => !a.Name.Equals(pkColumnName, StringComparison.OrdinalIgnoreCase)).ToList());

mariophill avatar Apr 08 '21 04:04 mariophill