0
나는 4 ~ 5 실버 프로젝트 업그레이드 지금은 DomainContext에 데이터를로드 컴파일 오류가했습니다실버
Context.Load(Context.GetMyEntityQuery(), LoadBehavior.RefreshCurrent, null, null);
The call is ambiguous between the following methods or properties:
'System.ServiceModel.DomainServices.Client.DomainContext.Load<MyEntity>(System.ServiceModel.DomainServices.Client.EntityQuery<MyEntity>, System.ServiceModel.DomainServices.Client.LoadBehavior, System.Action<System.ServiceModel.DomainServices.Client.LoadOperation<MyEntity>>, object)
'System.ServiceModel.DomainServices.Client.DomainContext.Load (System.ServiceModel.DomainServices.Client.EntityQuery, System.ServiceModel.DomainServices.Client.LoadBehavior, System.Action<System.ServiceModel.DomainServices.Client.LoadOperation>, object)'
어떤 아이디어 (이 문제를 해결하는 방법을 그리고 나는> 100 그런 오류가 있습니까?) 이런 식으로 호출
편집
도움 :
Context.Load<MyEntity>(Context.GetMyEntityQuery(), LoadBehavior.RefreshCurrent, null, null);
범인이 오버로드 (조립 System.ServiceModel.DomainServices.Client.dll, v2.0.5.0)입니다
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual LoadOperation Load(EntityQuery query, LoadBehavior loadBehavior, Action<LoadOperation> callback, object userState);
과 함께
public LoadOperation<TEntity> Load<TEntity>(EntityQuery<TEntity> query, LoadBehavior loadBehavior, Action<LoadOperation<TEntity>> callback, object userState) where TEntity : Entity;
왜 그렇습니까? 그렇다면 왜 그렇습니까? 어쨌든, 더 자세히 조사 할 것입니다 (최신 리아 서비스 1.0 SP2 참조, 모든것을 지우고 다시 작성하지 않는 것 같습니다).
참조를 확인하십시오. Ria Services dll은 특히 귀하의 실버 프로젝트에 있습니다. 생성 된 코드를 삭제하고 다시 작성하십시오. 우리는 두통없이 그것을했다. –
컴파일러에서 요청한대로을 표시 하시겠습니까? 도메인 서비스에 대한 모든 참조를 체크 아웃하고 정리하고 다시 작성하십시오. –
Ouarzy