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