Exemplo n.º 1
0
        public static IPropertyConfigurationBuilder <TProperty, ISqlPropertyConfiguration> HasSqlDbType <TProperty>(
            this IPropertyConfigurationBuilder <TProperty, ISqlPropertyConfiguration> @this,
            SqlDbType sqlDbType)
        {
            @this.PropertyConfiguration.SqlDbType = sqlDbType;

            return(@this);
        }
Exemplo n.º 2
0
        public static IPropertyConfigurationBuilder <TProperty, ICustomPropertyConfiguration> HasCustomPropertConfigurationValue <TProperty>(
            this IPropertyConfigurationBuilder <TProperty, ICustomPropertyConfiguration> @this,
            string customPropertConfigValue)
        {
            ExceptionHelper.ArgumentNull.ThrowIfNecessary(customPropertConfigValue, nameof(customPropertConfigValue));

            @this.PropertyConfiguration.CustomPropertyConfigurationValue = customPropertConfigValue;

            return(@this);
        }
Exemplo n.º 3
0
        public static IPropertyConfigurationBuilder <TProperty, ISqlPropertyConfiguration> HasColumnName <TProperty>(
            this IPropertyConfigurationBuilder <TProperty, ISqlPropertyConfiguration> @this,
            string columnName)
        {
            ExceptionHelper.ArgumentNull.ThrowIfNecessary(columnName, nameof(columnName));
            ExceptionHelper.Argument.ThrowIfTrue(!_columnNameRegex.IsMatch(columnName), $"'{columnName}' is an invalid column name.", nameof(columnName));

            @this.PropertyConfiguration.ColumnName = columnName;

            return(@this);
        }