public DataRow FillRow(int parentID, DataRow dr) { dr["id"] = dr.Table.Rows.Count; dr["parent_id"] = parentID; dr["table_name"] = TableName.ToLower(); dr["index_name"] = IndexName.ToLower(); dr["index_kind"] = IndexKind; dr["index_type"] = IndexType; return(dr); }
public override int GetHashCode() { using (MD5 md5 = new MD5CryptoServiceProvider()) { return(BitConverter.ToString(md5.ComputeHash(ASCIIEncoding.Default.GetBytes(SchemaName.ToLower() + TableName.ToLower() + IndexName.ToLower()))).GetHashCode()); } }