0
내가 다른 WindowForm에서 Service1.cs데이터베이스에서 이미지를 가져 오려면 ApplicationName 및 WCFService 이름과 클래스 이름을 왜 표시합니까? WCF 서비스에서
public CompositeType QuestionRetrieve(String email)
{
context = new myEntities();
Profile aProfile= new Profile();
aProfile= (from c in context.Questions
where c.QuestionId == email
select c).First();
CompositeType aCompositeType = new CompositeType();
aCompositeType.imageName= aProfile.ImageName;
return aCompositeType;
}
에서
[ServiceContract]
public interface IService1
{
[OperationContract]
CompositeType QuestionRetrieve(String email);
}
[DataContract]
public class CompositeType
{
private String imageName;
public string ImageName
{
get { return imageName; }
set { imageName= value; }
}
을하고 난 값을 검색을 시도했지만 나에게
를 WindowApplicationName serviceName에 및 클래스 이름 "의 CompositeType"가 표시 WindowForm에서우리는 PageLoad에하고 있습니다 :
Service aService = new Service();
Label1.Text = aService.QuestionRetrieve("[email protected]").ToString();
,691 당신은 내가 엔티티 함께 일하고 내 오류 어디 말할 수 나를
WindowFom.Service.CompositeType
에게 보여주는
그것.