string IDfnElement.ToDfnSyntax() { StringBuilder sb = new StringBuilder(); sb.Append(" " + NrdoReflection.GetTypeString(Type) + " " + Name + " "); if (DbType != null) { sb.Append(DbType + " "); } sb.Append(IsNullable ? "nullable" : "notnull"); sb.Append(" []"); return(sb.ToString()); }
string IDfnElement.ToDfnSyntax() { StringBuilder sb = new StringBuilder(); sb.Append(" " + NrdoReflection.GetTypeString(NonNullableType) + " " + Name + " "); if (DbType != null) { sb.Append(DbType + " "); } sb.Append(IsNullable ? "nullable " : "notnull "); if (!(container is NrdoQuery)) { sb.Append(IsWritable ? "readwrite " : "readonly "); } sb.Append("[]"); return(sb.ToString()); }