예제 #1
0
        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());
        }
예제 #2
0
        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());
        }