public override string ToString() { if (IsNull) { return SQLResource.s_nullString; } decimal money = ToDecimal(); // Formatting of SqlMoney: At least two digits after decimal point return money.ToString("#0.00##", null); }
public static SqlString ConvertMoneyToCN(SqlMoney money) { if (money.IsNull) return SqlString.Null; // 在此处放置代码 return new SqlString(MoneyConverter.GetCnString(money.ToString())); }