Esempio n. 1
0
 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);
         }
     }
 }
Esempio n. 2
0
 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);
         }
     }
 }