Beispiel #1
0
        private void GenerateBasic(DBSchema schema)
        {
            Schema = schema ?? throw new ArgumentNullException(nameof(schema));

            if (TableGroup == null)
            {
                TableGroup = new DBTableGroup(Attribute.GroupName)
                {
                    Schema      = Schema,
                    DisplayName = Attribute.GroupName
                };
                Schema.TableGroups.Add(TableGroup);
            }

            if (Table == null)
            {
                Table = CreateTable();
            }
            if (Table.DisplayName.Equals(Table.Name, StringComparison.Ordinal))
            {
                Table.DisplayName = ItemType.Name;
            }
            Table.Generator = this;
            Table.Group     = TableGroup;
            Table.Type      = Attribute.TableType;
            Table.BlockSize = Attribute.BlockSize;
            Table.Sequence  = Table.GenerateSequence(Attribute.SequenceName);
        }
Beispiel #2
0
        int IComparable.CompareTo(object obj)
        {
            DBTableGroup objC = obj as DBTableGroup;

            return(string.Compare(this.name, objC.name));
        }