Class Structure
public class Structure
- Inheritance
-
Structure
- Inherited Members
Constructors
Structure(string, IEqualityComparer<string>, IEnumerable<StructureTable>)
describe a datasource as a set of tables and columns
public Structure(string modelNamespace, IEqualityComparer<string> nameComparer, IEnumerable<StructureTable> tables)
Parameters
modelNamespacestringnameComparerIEqualityComparer<string>tablesIEnumerable<StructureTable>
Structure(Correspondence)
describe a datasource to be populated by tables later using an existing model's set of IDs
public Structure(Correspondence existingIDs)
Parameters
existingIDsCorrespondence
Fields
EntitySections
public readonly Dictionary<StructureSection, Guid> EntitySections
Field Value
MaxAttributesPerSection
public int? MaxAttributesPerSection
Field Value
- int?
UseIllegalCharacterReplacement
public bool UseIllegalCharacterReplacement
Field Value
UseIsLegacy
public bool UseIsLegacy
Field Value
UseLegacyColumnQualification
public bool UseLegacyColumnQualification
Field Value
UsePluralisation
public bool UsePluralisation
Field Value
UseReferenceSections
public bool UseReferenceSections
Field Value
UseUnsanitisedEnumNames
public bool UseUnsanitisedEnumNames
Field Value
Properties
Entities
public IReadOnlyList<StructureEntity> Entities { get; }
Property Value
Enums
public IReadOnlyDictionary<StructureKey, StructureEntity> Enums { get; }
Property Value
Relationships
public IReadOnlyList<StructureRelationship> Relationships { get; }
Property Value
Methods
AddEnum(string, string, string)
add an enum extraction to the datastore structure
public void AddEnum(string sourceTable, string sourceColumn, string targetTable)
Parameters
Remarks
this feature and its associated tag will be removed when we have modelling of attr->attr data copies
AddForeignKey(string, string, string, string)
add a relation to the datastore structure
public void AddForeignKey(string sourceTable, string sourceColumn, string targetTable, string targetColumn)
Parameters
AddForeignKey(StructureKey, StructureKey)
add a relation to the datastore structure
public void AddForeignKey(StructureKey source, StructureKey target)
Parameters
sourceStructureKeytargetStructureKey
AddTable(StructureTable)
add a table source to the datastore structure
public void AddTable(StructureTable t)
Parameters
OmitEntityAttribute(string, string)
don't import the specified column into an attribute
public void OmitEntityAttribute(string tableName, string columnName)
Parameters
SetEntityAttributeSection(string, string, string)
public void SetEntityAttributeSection(string tableName, string columnName, string sectionName)