示例#1
0
        private static ExplorerItem GetStructuralChildItem(IEdmEntityType parentType, IEdmStructuralProperty property)
        {
            var icon = parentType.HasDeclaredKeyProperty(property)
                                                                                                        ? ExplorerIcon.Key
                                                                                                        : ExplorerIcon.Column;

            var name = $"{property.Name} ({property.Type.GetTypeName()})";
            var item = new ExplorerItem(name, ExplorerItemKind.Property, icon)
            {
                DragText = property.Name
            };

            return(item);
        }
示例#2
0
        private static ExplorerItem GetStructuralChildItem(IEdmEntityType parentType, IEdmStructuralProperty property)
        {
            var icon = parentType.HasDeclaredKeyProperty(property)
                                                    ? ExplorerIcon.Key
                                                    : ExplorerIcon.Column;

            var name = $"{property.Name} ({property.Type.GetTypeName()})";
            var item = new ExplorerItem(name, ExplorerItemKind.Property, icon)
                                    {
                                        DragText = property.Name
                                    };

            return item;
        }