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); }
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; }