private void CopyMembers(Index old) { this.ObjectType = old.ObjectType; this.tableOrView = old.tableOrView; this.indexId = old.indexId; this.isPrimaryKey = old.isPrimaryKey; this.isClustered = old.isClustered; this.isUnique = old.isUnique; this.columns = new Lazy<ConcurrentDictionary<string, IndexColumn>>(this.LoadIndexColumns, true); }
public Index(Index old) : base(old) { CopyMembers(old); }
/// <summary> /// When overloaded in derived classes, loads all columns covered by and index /// </summary> /// <param name="index"></param> /// <returns></returns> internal abstract IEnumerable <KeyValuePair <string, IndexColumn> > LoadIndexColumns(Index index);