Exemplo n.º 1
0
        /// <summary>
        /// Adds the field with ownership.
        /// </summary>
        /// <param name="field">
        /// The field.
        /// </param>
        /// <returns>
        /// The <see cref="DatabaseMetaInfoField"/>.
        /// </returns>
        public DatabaseMetaInfoField AddFieldWithOwnership(DatabaseMetaInfoField field)
        {
            if (this.Fields == null)
            {
                this.Fields = new List <DatabaseMetaInfoField>();
            }

            this.Fields.Add(field);
            return(field);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the field.
 /// </summary>
 /// <param name="field">
 /// The field.
 /// </param>
 /// <returns>
 /// The <see cref="DatabaseMetaInfoField"/>.
 /// </returns>
 public DatabaseMetaInfoField AddField(DatabaseMetaInfoField field)
 {
     return(field == null ? null : this.AddFieldWithOwnership(field.CreateCopy()));
 }