private void AddRow(ArchAngel.Providers.EntityModel.Model.DatabaseLayer.IColumn column)
        {
            DevComponents.AdvTree.Node node = new DevComponents.AdvTree.Node(column.Name);

            for (int i = 0; i < MappedEntities.Count; i++)
            {
                DevComponents.AdvTree.Cell cell = new DevComponents.AdvTree.Cell();
                cell.CheckBoxAlignment  = DevComponents.AdvTree.eCellPartAlignment.Default;
                cell.CheckBoxVisible    = true;
                cell.CheckBoxStyle      = DevComponents.DotNetBar.eCheckBoxStyle.CheckBox;
                cell.CheckBoxThreeState = false;
                cell.Checked            = MappedEntities[i].ConcreteProperties.Count(p => p.MappedColumn() == column) > 0;
                node.Cells.Add(cell);
            }
            advTree1.Nodes.Add(node);
        }
Exemplo n.º 2
0
        public static ArchAngel.Providers.EntityModel.Model.DatabaseLayer.IColumn GetIndexColumn(DirectedReference directedReference, ITable table)
        {
            var columnName = GetIndexColumnName(directedReference);

            ArchAngel.Providers.EntityModel.Model.DatabaseLayer.IColumn column = table.GetColumn(columnName, StringComparison.InvariantCultureIgnoreCase);

            if (column == null)
            {
                Property prop = directedReference.ToEntity.Properties.SingleOrDefault(p => p.Name.Equals(columnName, StringComparison.InvariantCultureIgnoreCase));

                if (prop != null)
                {
                    column = prop.MappedColumn();
                }
            }
            return(column);
        }