nHydrate.Generator.Models.Table.Table C# (CSharp) Method

Table() public method

public Table ( INHydrateModelObject root ) : System
root INHydrateModelObject
return System
        public Table(INHydrateModelObject root)
            : base(root)
        {
            this.MetaData = new MetadataItemCollection();

            _compositeList = new TableCompositeCollection(root, this);
            _componentList = new TableComponentCollection(root, this);
            _security = new SecurityFunction(root, this);
            _security.ResetKey(Guid.Empty.ToString());

            _staticData = new RowEntryCollection(this.Root);
            _columns = new ReferenceCollection(this.Root, this, ReferenceType.Column);
            _columns.ResetKey(Guid.Empty.ToString());
            _customRetrieveRules = new ReferenceCollection(this.Root, this, ReferenceType.CustomRetrieveRule);
            _customRetrieveRules.ResetKey(Guid.Empty.ToString());
            _relationships = new ReferenceCollection(this.Root, this, ReferenceType.Relation);
            _relationships.ResetKey(Guid.Empty.ToString());
            _viewRelationships = new ReferenceCollection(this.Root, this, ReferenceType.Relation);
            _viewRelationships.ResetKey(Guid.Empty.ToString());

            _columns.ObjectPlural = "Fields";
            _columns.ObjectSingular = "Field";
            _columns.ImageIndex = ImageHelper.GetImageIndex(TreeIconConstants.FolderClose);
            _columns.SelectedImageIndex = ImageHelper.GetImageIndex(TreeIconConstants.FolderOpen);

            _customRetrieveRules.ObjectPlural = "RetrieveRules";
            _customRetrieveRules.ObjectSingular = "RetrieveRule";
            _customRetrieveRules.ImageIndex = ImageHelper.GetImageIndex(TreeIconConstants.FolderClose);
            _customRetrieveRules.SelectedImageIndex = ImageHelper.GetImageIndex(TreeIconConstants.FolderOpen);

            _relationships.ObjectPlural = "Relationships";
            _relationships.ObjectSingular = "Relationship";
            _relationships.ImageIndex = ImageHelper.GetImageIndex(TreeIconConstants.FolderClose);
            _relationships.SelectedImageIndex = ImageHelper.GetImageIndex(TreeIconConstants.FolderOpen);

            _viewRelationships.ObjectPlural = "View Relationships";
            _viewRelationships.ObjectSingular = "View Relationship";
            _viewRelationships.ImageIndex = ImageHelper.GetImageIndex(TreeIconConstants.FolderClose);
            _viewRelationships.SelectedImageIndex = ImageHelper.GetImageIndex(TreeIconConstants.FolderOpen);

        }