public static ModelSqlColumn Ensure(IModelSqlObjectWithColumns objectWithColumns, string name)
        {
            var sqlName = objectWithColumns.Name.Child(name, ObjectLevel.Child);

            return(objectWithColumns.Columns.GetValueOrDefault(sqlName)
                   ?? new ModelSqlColumn(objectWithColumns, name));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ModelSqlColumn"/> class.
 /// </summary>
 /// <param name="owner">the owner</param>
 /// <param name="name">the column name</param>
 public ModelSqlColumn(IModelSqlObjectWithColumns owner, string name)
     : this(owner.GetScope())
 {
     this.Name  = owner.Name.ChildWellkown(name);
     this.Owner = owner;
 }