コード例 #1
0
        /// <summary>
        /// The transform column precision.
        /// </summary>
        /// <param name="col">
        /// The col.
        /// </param>
        /// <returns>
        /// The <see cref="string"/>.
        /// </returns>
        /// <exception cref="NotImplementedException">
        /// </exception>
        public string TransformColumnPrecision(Column col, IDriver driver = null)
        {
            if (!col.InValidPrecisionGeneration && (col.Precision > 0 || col.Scale > 0))
            {
                return($".HasColumnType(\"{CSharpOutputMapper.MapToConstraint(col)}\")");
            }

            return(string.Empty);
        }
コード例 #2
0
 /// <summary>
 /// The transform as parameter.
 /// </summary>
 /// <param name="col">
 /// The col.
 /// </param>
 /// <returns>
 /// The <see cref="string"/>.
 /// </returns>
 public string TransformAsParameter(Column col)
 {
     return($"{CSharpOutputMapper.MapToOutput(col)} {this.TransformParameterName(col.ColumnName)}");
 }