예제 #1
0
 private static void CreateEntityTypes(IEnumerable <ContentType> contentTypes, SchemaGenerationContext context)
 {
     foreach (var contentType in contentTypes)
     {
         if (context.IsPermittedType(contentType))
         {
             CreateEntityType(contentType, context);
         }
     }
 }
예제 #2
0
 private static void CreateChildEntityTypes(ContentType contentType, SchemaGenerationContext context)
 {
     context.Flattening = false;
     foreach (var childType in contentType.ChildTypes)
     {
         if (context.IsPermittedType(childType))
         {
             CreateEntityType(childType, context);
         }
     }
 }