コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }