1

Silverlight 응용 프로그램의 DataGrid로 반환을 덤프하고 싶습니다. 키가없는 저장 프로 시저를 작성하고 4 개의 속성 만 반환했습니다. 나는Silverlight 및 RIA를 통해 저장 프로 시저를로드 할 수 없습니다.

  • 기능 가져 오기 이름 :: LecAllInfo와 엔티티 프레임 워크에 기능을 가져온
  • 저장 프로 시저 이름 :: LecAllInfo
  • 은의 :: 복합 컬렉션 반환 LecAllInfo_Result
  • 저장 프로 시저 열 정보 내 도메인 빼앗아에서

    StartTime, EndTime, Venue, Purpose 
    

코드 그 클래스 내 메타 데이터 (OrganizationService.metadata.cs)에서 (OrganizationService.cs)

public IQueryable<LecAllInfo_Result> LecAllInfoQuery(string lecId) 
    { 
     return this.ObjectContext.LecAllInfo(lecId).AsQueryable<LecAllInfo_Result>(); 
    } 

코드를

[MetadataTypeAttribute(typeof(LecAllInfo_Result.LecAllInfo_ResultMetadata))] 
public partial class LecAllInfo_Result 
{ 
    internal sealed class LecAllInfo_ResultMetadata 
    { 
      private LecAllInfo_ResultMetadata() 
      { 
      } 

      public DateTime StartTime { get; set; } 
      public DateTime EndTime { get; set; } 
      public string Venue { get; set; } 
      public string Purpose { get; set; } 
    } 
} 

하지만입니다 ::

일반적인 방식으로 LecAllInfo을, 다시 전화하는 데 실패
var context = new OrganizationContext(); 
context.Load(context.GetLecNotificationQuery(((App) Application.Current).GloUid), loadLectNort, null); 
context.Load(context.Lec << Unable to Load it 

context.Load (context.LecAllInfo ("LP123112"), true);

오류 및 ReSharper에서이 날의 방법을 만들 말하는 돌아갑니다 'OrganizationContext.LecAllInfo'

나는 알고있다

내 코드의 구조 또는 내가 어떻게이 동안을 편집 할 수 있습니다 난 아무 생각이 없어에 문제가 그것을 만드는 방법에 ?? 내가 ReSharper에서 옵션을 클릭 할 때

, 그것은 내가 웹에 대한 몇 가지 튜토리얼을 사용할 다음 SolutionName.Web.g.cs

public EntityQuery<object> LecAllInfo(string lp123112) 
    { 
     throw new NotImplementedException(); 
    } 

에서이 만들어 유래 회원뿐만 아니라 게시하지만 여전히 그렇게하지 못했습니다. 답장을 보내 주셔서 감사합니다

+0

@marc_s, 클라이언트에서 쿼리를 호출 할 때이 오류를 일으키는 문제가 어디 있는지 알고 있습니까 ?? – 1myb

답변

0

로드하려면 저장 프로 시저에서는 키를 아무 것도 정의해야합니다. SOLVED