コード例 #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
ファイル: Extensions.cs プロジェクト: meancrazy/LINQPadOData4
        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;
        }