/// <summary> /// 调函数. /// </summary> private static void CallFunc() { Console.WriteLine("===== 测试执行函数的处理."); using (Test context = new Test(connString)) { string test = context.HelloWorldFunc(); Console.WriteLine("调用 HelloWorldFunc, 返回结果={0}", test); var query = context.getHelloWorld(); foreach (getHelloWorldResult data in query) { Console.WriteLine("调用返回结果集的函数,返回结果 A={0}; B={1}", data.A, data.B); } } }