开发者

How add onLoadOperationCompleted?

I use EF 4.

 private static readonly RoomContext m_RoomsContext = new RoomContext();

Load:

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

error:

Error 2 Argument 3: cannot convert from 'method group' to 'System.Action>' Error 1 The best overloaded method match for 'System.ServiceModel.DomainServices.Client.DomainContext.Load(System.ServiceModel.DomainServices.Client.Ent开发者_开发百科ityQuery, System.ServiceModel.DomainServices.Client.LoadBehavior, System.Action>, object)' has some invalid arguments

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜