Exemple #1
0
        public void AddTableWithNonUniqueKeys([NotNull] XmlTableWithNonUniqueKeys table)
        {
            if (TablesWithNonUniqueKeys == null)
            {
                TablesWithNonUniqueKeys = new List <XmlTableWithNonUniqueKeys>();
            }

            TablesWithNonUniqueKeys.Add(table);
        }
Exemple #2
0
        private static XmlTableWithNonUniqueKeys CreateTableWithNonUniqueKeys(
            [NotNull] ITable table,
            [NotNull] IEnumerable <object> nonUniqueKeys)
        {
            var result =
                new XmlTableWithNonUniqueKeys
            {
                TableName = DatasetUtils.GetName(table),
                Workspace = WorkspaceUtils.GetWorkspaceDisplayText
                                (DatasetUtils.GetWorkspace(table))
            };

            foreach (object key in nonUniqueKeys)
            {
                result.AddNonUniqueKey(key);
            }

            return(result);
        }