My stored procedure looks like this:
create Procedure procLoc
AS
BEGIN
select
pr.name, loc.address
from
Profile pr
join
Location loc on pr.id = loc.id
END
For the add function Import dialog box that comes up, there are the following options
- None
- Scalars
- Complex
- Entities
Which option would I select in this scenario?
Since your stored procedure is returning multiple values:
pr.name,loc.address, you’ll only have 2 choices- Complex or Entities. If you already have an entity mapped with Name/Address properties you can choose it, otherwise choose complex. I usually click theGet Column Informationbutton and thenCreate New Complex typeand let it generate one for me.