将读取存储过程映射到具有复杂类型的权限 [英] Mapping read stored procedure to entitiess with complex types

查看:89
本文介绍了将读取存储过程映射到具有复杂类型的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我有一个Order实体映射到Order表。它有两个属性,ShippingAddress和Billing Address,类型为Address。

仅出于测试目的,我想使用存储过程来检索所有订单。使用Select * from [order]不起作用。有没有办法做到这一点,或者我必须采用自定义类型?

Hello,

I have an Order entity mapped to an Order table. It has two properties, ShippingAddress and Billing Address, of type Address.

Just for testing purposes, I want to use a stored procedure to retrieve all orders. Using a Select * from [order] doesn't work. Is there any way to do this or I have to resort to a custom type?

推荐答案

你的意思是什么?工作"? sproc返回的列是否按名称匹配订单类型的所有属性?

What do you mean by "doesn't work"? Do the columns returned by the sproc match all the properties of the order type by name?


这篇关于将读取存储过程映射到具有复杂类型的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆