/// <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); }
/// <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)}"); }