DomainServiceAccountManager d = new DomainServiceAccountManager();
Web.Buy b=new Web.Buy();
b.ID_member = IDMemberToBuy;
b.Money = MoneyBuy;
b.Tarikh = tarikh;
b.Hesab = false;
d.Buys.Add(b);
d.SubmitChanges(op => { if (!op.HasError) MessageBox.Show(b.ID.ToString()); });
但是我收到了这个错误:
方法'SubmitChanges'没有重载需要1个参数
C:\ Users \ farzad \ Documents \ Visual Studio 2010 \ Projects \ AccountManager \ AccountManager \ Views \ Login \ CWBuy.xaml.cs 214 13 AccountManager