/// <summary> /// 转成string /// </summary> /// <returns></returns> public override string ToString() { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("PropertyName=\"" + FormatString(PropertyName) + "\","); sb.Append("ColumnName=\"" + FormatString(ColumnName) + "\","); sb.Append("IsNullable=" + IsNullable.ToString().ToLower() + ","); sb.Append("FieldType=" + Utility.ConvertFieldTypeToString(FieldType) + ","); sb.Append("FieldLength=" + FieldLength + ","); sb.Append("DefauleValue=\"" + FormatString(DefauleValue) + "\","); sb.Append("Remark=\"" + FormatString(Remark) + "\""); return(sb.ToString()); }
/// <inheritdoc /> void IPrintableExpression.Print(ExpressionPrinter expressionPrinter) { expressionPrinter.AppendLine(nameof(EntityShaperExpression) + ": "); using (expressionPrinter.Indent()) { expressionPrinter.AppendLine(EntityType.Name); expressionPrinter.AppendLine(nameof(ValueBufferExpression) + ": "); using (expressionPrinter.Indent()) { expressionPrinter.Visit(ValueBufferExpression); expressionPrinter.AppendLine(); } expressionPrinter.Append(nameof(IsNullable) + ": "); expressionPrinter.AppendLine(IsNullable.ToString()); } }
/// <inheritdoc /> public virtual void Print(ExpressionPrinter expressionPrinter) { Check.NotNull(expressionPrinter, nameof(expressionPrinter)); expressionPrinter.AppendLine(nameof(EntityShaperExpression) + ": "); using (expressionPrinter.Indent()) { expressionPrinter.AppendLine(EntityType.ToString()); expressionPrinter.AppendLine(nameof(ValueBufferExpression) + ": "); using (expressionPrinter.Indent()) { expressionPrinter.Visit(ValueBufferExpression); expressionPrinter.AppendLine(); } expressionPrinter.Append(nameof(IsNullable) + ": "); expressionPrinter.AppendLine(IsNullable.ToString()); } }