如何添加onLoadOperationCompleted?

时间:2011-05-28 14:49:08

标签: silverlight entity-framework

我使用EF 4。

 private static readonly RoomContext m_RoomsContext = new RoomContext();

负载:

  RoomsContext.Load(RoomsContext.GetTableQuery(), LoadBehavior.MergeIntoCurrent, onLoadOperationCompleted, new object());

错误:

  

错误2参数3:无法转换   从'方法组'到   'System.Action>'   错误1最佳重载方法   匹配   “System.ServiceModel.DomainServices.Client.DomainContext.Load(System.ServiceModel.DomainServices.Client.EntityQuery,   System.ServiceModel.DomainServices.Client.LoadBehavior,   System.Action>中   对象)'有一些无效的参数

0 个答案:

没有答案