public string ToSqlString() { var propId = Property.Id; var tenantId = Tenant.Id; var price = MonthlyPrice.ToString(CultureInfo.InvariantCulture); return($"{propId}, {tenantId}, {price}, " + $"{CastUtils.FormatSqlDate(StartDate)}, {CastUtils.FormatSqlDate(EndDate)}"); }
public override string ToString() { return(MonthlyPrice.ToString("C") + "/" + Period + " (" + TotalCharge.ToString("C") + ")"); }
public override string ToString() { // Generates the text shown in the combo box return(MonthlyPrice.ToString("c") + "/" + Period + " (Total : " + TotalCharge.ToString("c") + ")"); }