Пример #1
0
 private static void AddEpmAttributes(EntityType entityType, int count, int startIndex)
 {
     for (int i = 0; i < count; ++i)
     {
         int ix = startIndex + i;
         string propertyName = "Name" + ix;
         entityType.Property(propertyName, EdmDataTypes.String().Nullable());
         entityType.EntityPropertyMapping(propertyName, "custom/name" + ix, "c", "http://customuri/", true);
     }
 }