Can't use Entity Type as parameter to Model-Defined Function

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
rmagruder
Posts: 47
Joined: Thu 26 Jun 2014 17:12

Can't use Entity Type as parameter to Model-Defined Function

Post by rmagruder » Tue 17 Mar 2015 13:11

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

rmagruder
Posts: 47
Joined: Thu 26 Jun 2014 17:12

Re: Can't use Entity Type as parameter to Model-Defined Function

Post by rmagruder » Tue 17 Mar 2015 15:42

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.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Can't use Entity Type as parameter to Model-Defined Function

Post by MariiaI » Wed 18 Mar 2015 09:24

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.

rmagruder
Posts: 47
Joined: Thu 26 Jun 2014 17:12

Re: Can't use Entity Type as parameter to Model-Defined Function

Post by rmagruder » Fri 20 Mar 2015 18:33

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.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Can't use Entity Type as parameter to Model-Defined Function

Post by MariiaI » Mon 23 Mar 2015 12:29

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.

Post Reply