开发者

How add onLoadOperationCompleted?

开发者 https://www.devze.com 2023-03-08 19:26 出处:网络
I use EF 4. private static readonly RoomContext m_RoomsContext = new RoomContext(); Load: RoomsContext.Load(RoomsContext.GetTableQuery(), LoadBehavior.MergeIntoCurrent, 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

精彩评论

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