Silverlight/WCF Ria Service

Silverlight + Ria Domainservice 연동

홍상길 2010. 8. 1. 23:02

진행 순서

1. metadata 생성
    [MetadataTypeAttribute(typeof(rm_login_1_Result.rm_login_1_ResultMetadata))]
    public partial class rm_login_1_Result
    {
        internal sealed class rm_login_1_ResultMetadata
        {
            [Key]
            public string user_user { get; set; }
        }
    }

2. SP 호출
        public ObjectResult<URCSilverlight.Web.rm_login_1_Result> GetLoginCheck(string UserID, string UserPwd)
        {
            return this.ObjectContext.rm_login_1(UserID, UserPwd);
        }