예제 #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);
         }
     }
 }
예제 #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);
         }
     }
 }