private static void BuildReflectionEpmInfo(ResourceType currentResourceType) { if (currentResourceType.ResourceTypeKind == ResourceTypeKind.EntityType) { foreach (EntityPropertyMappingAttribute attribute in currentResourceType.InstanceType.GetCustomAttributes(typeof(EntityPropertyMappingAttribute), currentResourceType.BaseType == null)) { currentResourceType.AddEntityPropertyMappingAttribute(attribute); } } }
private static void BuildReflectionEpmInfo(ResourceType currentResourceType) { if (currentResourceType.ResourceTypeKind == ResourceTypeKind.EntityType) { foreach (EntityPropertyMappingAttribute attribute in currentResourceType.InstanceType.GetCustomAttributes(typeof(EntityPropertyMappingAttribute), currentResourceType.BaseType == null)) { currentResourceType.AddEntityPropertyMappingAttribute(attribute); } } }