내 도메인 서비스를 추가했지만 웹 프로젝트를 빌드 할 때 DomainContext가 생성되지 않습니다. 나는 RIA 서비스에 익숙하지 않고 배우려고 노력하고 있지만 나는 정말로 붙어 있습니다. 여기 Silverlight 4 용 RIA 서비스에서 DomainContext가 생성되지 않습니다.
내 도메인 서비스입니다Option Compare Binary
Option Infer On
Option Strict On
Option Explicit On
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.ComponentModel.DataAnnotations
Imports System.Linq
Imports System.ServiceModel.DomainServices.Hosting
Imports System.ServiceModel.DomainServices.Server
Imports Wellness.BL
Imports System.Collections.ObjectModel
'TODO: Create methods containing your application logic.
<EnableClientAccess()> _
Public Class EventScheduleService
Inherits DomainService
Public Function GetEventSchedule(ByVal ScheduleYear As Integer) As IEnumerable(Of Models.EventSchedule)
Return DataServices.EventSchedulesDataService.GetEventSchedule(ScheduleYear)
End Function
End Class
RIA 서비스 링크를 추가 했습니까? [방법 : RIA 서비스 링크 추가 또는 제거] (http://msdn.microsoft.com/en-us/library/ee707372(v=vs.91).aspx) – Kinnara
Silverlight 프로젝트 속성의 실버 탭 및 WCF RIA 서비스 링크를 asp.net 웹 응용 프로그램 인 Wellness.Web으로 설정해야합니다. 이것은 내가 따라 가고자했던 블로그입니다 ... http : //msmvps.com/blogs/deborahk/archive/2009/11/05/silverlight-ria-services-and-your-business-objects.aspx? CommentPosted = 사실 # commentmessage – Spafa9