0
RIA 서비스를 사용하여 lightswitch에 전달되는 서비스 클래스가 있습니다. 서비스 클래스는 기본 lightswitch 또는 SQL 유형 대신 사용자 정의 유형을 사용합니다.라이트 스위치가있는 RIA 서비스의 사용자 정의 유형을 사용하는 방법은 무엇입니까?
public class MyService : DomainService
{
[Query(IsDefault = true)]
public IQueryable<MyRecord> GetMyRecordData()
{
return ...
}
}
public class MyRecord
{
[Key]
public int Id {get; set;}
public string Text {get;set;}
public MyCustomType Custom {get;set;}
}
public struct MyCustomType
{
public MyCustomType (int val1, int val2) : this()
{
Val1 = val1;
Val2 = val2;
}
public int Val1 {get; private set;}
public int Val2 {get; private set;}
}
표시 장치에이 사용자 정의 유형을 사용하는 방법은 무엇입니까?