我有一个自定义POCO(已经存在并且在我的项目中使用).
public class MyPoco()
{
public string MyPocoName {get; set;}
public string MyPocoParentName {get; set;}
}
Run Code Online (Sandbox Code Playgroud)
我还有一个存储过程,返回(MyPocoName,MyPocoParentName)值的列表.
我无法在函数导入向导中将MyPoco设置为此过程的返回类型.
我不想创建与MyPoco具有相同比例的新自定义类型.
有没有办法可以将存储过程的返回类型指定为MyPoco.
谢谢.