ブログ scottgu から Linq to sql を調べたところ、次のエラー メッセージが表示されました。
「シンボル ExecuteMethodCall を解決できません」。
メソッド ExecuteMethodCallis は linq to sql でサポートされていますが、なぜこのエラーが表示されるのですか?
ALTER PROCEDURE dbo.VariableShapeSample
        (
    @shape int 
    )
AS
    if(@shape=1)
    select * from products
    else if (@shape=2)
    select * from orders
public partial class NorthwindDataContext
{
    [Function(Name = "VariableShapeSample")]
    [ResultType(typeof (Product))]
    [ResultType(typeof (Order))]
    public IMultipleResults VariableShapeSample(System.Nullable<int> shape )
    {
        IExecuteResult result = this.ExecuteMethodCall(this
                                                       , ((MethodInfo) (MethodInfo.GetCurrentMethod()))
                                                       , shape);
        return (IMultipleResults) result.ReturnValue;
    }
}