stored procedures - configure behaivour issue

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
Posts: 15
Joined: Sat 26 Nov 2011 00:56

stored procedures - configure behaivour issue

Post by » Wed 07 Dec 2011 21:50

I have a stored procedure with the following signature

CREATE OR REPLACE FUNCTION cbill.insert_attributes(p_id integer, p_attribute_type character varying, p_attribute_name character varying)
RETURNS integer AS

I have 2 classes (or tables)

I want to map the all_attributes class to the above stored procedure. In terms of mapping,

p_id is mapped to
p_attribute_name is mapped to all_attributes.attribute_name
p_attribute_type is mapped to attribute_type.description (all_attributes.attribute_type_id is a foreign key to

The problem is with the last mapping. I need to map that parameter to the description column, however only is displayed in the Property drop down list. How can i get the description property to appear?

Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 09 Dec 2011 16:03

As we understood, you are mapping your all_attributes class to the insert_attributes procedure. In this case attribute_type.description should not be available for mapping. The property is available for mapping because you have set an association between and all_attributes.attribute_type_id.

Post Reply