示例#1
0
        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);
        }
示例#2
0
 public Index(Index old)
     : base(old)
 {
     CopyMembers(old);
 }
示例#3
0
 /// <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);