Page 1 of 1
Can't use Entity Type as parameter to Model-Defined Function
Posted: Tue 17 Mar 2015 13:11
by rmagruder
Hi,
I noticed that although the Entity Framework documentation suggests you can use an Entity type as input to an MDF, the entity designer surface doesn't allow anything other .net Types.
Can you address this?
Thanks
Randy
Re: Can't use Entity Type as parameter to Model-Defined Function
Posted: Tue 17 Mar 2015 15:42
by rmagruder
This is where it gets really bad:
CSDL parsing failed: The attribute 'Type' of tag 'Parameter' has an unexpected value 'ThreeDEntities.AWARD_T' at line #3661.
Warning! The error means that a part of the model cannot be read. If you save model after this, the unrecognized XML will be lost. It is strongly recommended to create a backup copy of the model to be able to restore it to the original state if needed.
So, yeah...I can go in and fix the EDML manually because I know that EF supports Entity Parameters, but I am risking data loss in the designer.
Re: Can't use Entity Type as parameter to Model-Defined Function
Posted: Wed 18 Mar 2015 09:24
by MariiaI
rmagruder wrote:I noticed that although the Entity Framework documentation suggests you can use an Entity type as input to an MDF, the entity designer surface doesn't allow anything other .net Types.
Currently it is not supported and we can't tell you any timeframe regarding this functionality at the moment.
We will investigate the possibility of using entity for an input parameter and notify you about the result as soon as possible.
Please post your suggestion at
http://devart.uservoice.com/forums/3867 ... -developer.
Re: Can't use Entity Type as parameter to Model-Defined Function
Posted: Fri 20 Mar 2015 18:33
by rmagruder
I have done as you advise.
Disappointing news for sure, as I always considered DevArt to be everything Entity Framework is and more. And in this case, it appears it is less, in that a documented feature of EF is not supported by DevArt
Please strongly consider adding this if it isn't too much trouble.
Re: Can't use Entity Type as parameter to Model-Defined Function
Posted: Mon 23 Mar 2015 12:29
by MariiaI
Thank you for posting the suggestion. We will consider the possibility of adding this feature and notify you about the results as soon as any are available.