1
나는 그 내 MS SQL 2008 데이터베이스의 SP 호출이있어 :C#을 LINQ - 투 - SQL 다중 선택
[Function(Name = "dbo.Content_GetContent")]
[ResultType(typeof(Content_GetContentResult))]
[ResultType(typeof(Content_GetContentImagesResult))]
[ResultType(typeof(Content_GetContentBoxesResult))]
[ResultType(typeof(Content_GetContentSearchWordsResult))]
public IMultipleResults GetContent([Parameter(DbType = "INT")]int? contentID)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), contentID);
return ((IMultipleResults)(result.ReturnValue));
}
을하지만 난이 문제가 아니라 모든 테이블이 결과를 반환 할 수 있습니다를 얻었고, 콘텐츠 ID 경우 (유효한 내용 번호가 아닌) 올바르지 않은 경우 다음 오류가 발생하고 "IMultipleResults를 반환하지 않는 GetContent 함수에 대해 하나 이상의 결과 형식이 선언되었습니다."
어떻게 해결할 수 있습니까?