Dashing.Configuration.Index.Index C# (CSharp) Method

Index() public method

public Index ( IMap map, ICollection columns, string name = null, bool isUnique = false ) : System
map IMap
columns ICollection
name string
isUnique bool
return System
        public Index(IMap map, ICollection<IColumn> columns, string name = null, bool isUnique = false) {
            if (map == null) {
                throw new ArgumentNullException("map");
            }

            if (columns == null) {
                throw new ArgumentNullException("columns");
            }

            this.Map = map;
            this.Columns = columns;
            this.IsUnique = isUnique;
            this.Name = !string.IsNullOrWhiteSpace(name) ? name : this.GenerateName();
        }