Пример #1
0
 public static void MapType <T>(this SchemaGeneratorOptions options, Func <Schema> schemaFactory)
 {
     options.CustomTypeMappings.Add(typeof(T), schemaFactory);
 }
Пример #2
0
 public static void ModelFilter <TFilter>(this SchemaGeneratorOptions options)
     where TFilter : IModelFilter, new()
 {
     options.ModelFilters.Add(new TFilter());
 }