示例#1
0
 /// <summary>
 /// Example of using a decimal field builder.
 ///
 /// This is purely to demonstrate the use of a builder as in most cases one of the factory convenience methods
 /// would be much easier to use to create a new field metadata definition.
 /// </summary>
 /// <param name="name">The field name.</param>
 /// <param name="scale">The scale of the decimal value, that is, the number of digits to the right of the
 /// decimal point.</param>
 /// <param name="value">The default value.</param>
 /// <returns></returns>
 public IMDecimalString CreateDecimal(string name, int scale, double value)
 {
     return(factory.DecimalBuilder(name).SetScale(scale).SetDefaultValue(value).Build());
 }