public static ICodeFirstConfiguration RegisterExtendedScalarTypes( this ICodeFirstConfiguration schemaConfiguration) { schemaConfiguration.RegisterType(typeof(DecimalType)); schemaConfiguration.RegisterType(typeof(LongType)); schemaConfiguration.RegisterType(typeof(DateTimeType)); schemaConfiguration.RegisterType(typeof(DateType)); schemaConfiguration.RegisterType(typeof(UuidType)); schemaConfiguration.RegisterType(typeof(UrlType)); return(schemaConfiguration); }
public static ICodeFirstConfiguration RegisterExtendedScalarTypes( this ICodeFirstConfiguration schemaConfiguration) { if (schemaConfiguration == null) { throw new ArgumentNullException(nameof(schemaConfiguration)); } schemaConfiguration.RegisterType(typeof(DecimalType)); schemaConfiguration.RegisterType(typeof(ByteType)); schemaConfiguration.RegisterType(typeof(ShortType)); schemaConfiguration.RegisterType(typeof(LongType)); schemaConfiguration.RegisterType(typeof(DateTimeType)); schemaConfiguration.RegisterType(typeof(DateType)); schemaConfiguration.RegisterType(typeof(UuidType)); schemaConfiguration.RegisterType(typeof(UrlType)); return(schemaConfiguration); }