可以設定啟用Peer Name Resolution Protocol ,啟動之後,要重新開機
這樣就可以寫Peer-To-Peer WCF服務程式



1 using System.Data.Objects;
2 using System.Collections.ObjectModel;
3 namespace EFWpf {
4 public partial class Window1 : Window {
5 public Window1() {
6 InitializeComponent();
7 }
8 NorthwindEntities context = new NorthwindEntities();
9 private List<Employees> employees;
10 private void Window_Loaded(object sender, RoutedEventArgs e) {
11 employees = context.Employees.ToList();
12 listBox1.ItemsSource = employees;
13 }
14 }
15 }