Esempio n. 1
0
 /// <summary>
 /// Adds GeoJSON compliant spatial types.
 /// </summary>
 /// <param name="builder">
 /// The <see cref="ISchemaBuilder"/>.
 /// </param>
 /// <returns>
 /// The <see cref="ISchemaBuilder"/>.
 /// </returns>
 /// <exception cref="ArgumentNullException">
 /// The <paramref name="builder"/> is <c>null</c>.
 /// </exception>
 public static ISchemaBuilder AddSpatialTypes(this ISchemaBuilder builder)
 {
     return(builder.AddSpatialTypes(() => new SpatialConvention()));
 }
Esempio n. 2
0
 /// <summary>
 /// Adds GeoJSON compliant spatial types.
 /// </summary>
 /// <param name="builder">
 /// The <see cref="ISchemaBuilder"/>.
 /// </param>
 /// <param name="descriptor">
 /// Configure the spatial convention
 /// </param>
 /// <returns>
 /// The <see cref="ISchemaBuilder"/>.
 /// </returns>
 /// <exception cref="ArgumentNullException">
 /// The <paramref name="builder"/> is <c>null</c>.
 /// </exception>
 public static ISchemaBuilder AddSpatialTypes(
     this ISchemaBuilder builder,
     Action <ISpatialConventionDescriptor> descriptor)
 {
     return(builder.AddSpatialTypes(() => new SpatialConvention(descriptor)));
 }