entity mappings and complex types
Posted: Fri 12 Oct 2012 10:14
I manually created an entity to be used for the result of a stored procedure.
I also created a complex type which is used in that entity to group some fields.
When I map the entity to the columns of the stored procedure result I can also map columns to the fields inside the complex type using the class editor dialog.
However, this does not seem to be taken into account. Only when I do the mapping directly in the complex type definition the call works.
Is this a bug?
BTW: It would be nice if one could overload the entity mapping for each stored procedure call. Some stored procedures may return the same "entity" but using different column names. Currently it seems one has to define one entity per stored procedure with different result column names.
PS: I use Entity Developer v4.7, target: NHibernate.
I also created a complex type which is used in that entity to group some fields.
When I map the entity to the columns of the stored procedure result I can also map columns to the fields inside the complex type using the class editor dialog.
However, this does not seem to be taken into account. Only when I do the mapping directly in the complex type definition the call works.
Is this a bug?
BTW: It would be nice if one could overload the entity mapping for each stored procedure call. Some stored procedures may return the same "entity" but using different column names. Currently it seems one has to define one entity per stored procedure with different result column names.
PS: I use Entity Developer v4.7, target: NHibernate.