Page 1 of 1

RIA Services - Add Domain Service Class Wizard Problem

Posted: Fri 28 May 2010 08:43
by r.m.saddler
Hi,

I am trying to use RIA Services with Silverlight 4 and the latest build (as of today) of dotConnect for Oracle and have hit a problem with the Add Domain Service Class Wizard.

I have generated a EDML file and when I try to add a Domain Service Class the wizard sees the ObjectContext class containing my entities. However, I cannot tick 'Enable editing' against any of the entities nor can I tick 'Generate associated classes for metadata' since both set of options are disabled.

When I generate the class it is empty so I have to hand type the get/add/update/delete statements.

Thanks,

Rob.

Posted: Mon 31 May 2010 14:49
by AndreyR
I have just generated an .edml file and have successfully added a Domain Service class. Both mentioned check boxes were enabled.
The code was generated successfully.
My setup: VS 2010 RTM, dotConnect for Oracle 5.70.140.
Please send me the model causing the error and the generated script.

Posted: Thu 17 Jun 2010 13:18
by r.m.saddler
OK, I have discovered what the issue was - I had 3.5 selected as the Entity Framework version.

Here is the resolution:

- Double click on the model
- In the Entity Framework version drop down select 4.0

I also ticked "Include foreign key columns in the model" too as this was disabled with version 3.5.

Thanks,

Rob.

Posted: Thu 17 Jun 2010 13:32
by AndreyR
Glad to hear the issue is resolved. Thank you for the information.

RIA Services - Add Domain Service Class Wizard Problem

Posted: Fri 18 Feb 2011 01:37
by billchannel
Hi,

I created a Devart Entity Model with dotConnect to PostgreSQL(v5.00 Demo) for PostgreSQL 9.0.3 database, and then I'm trying to create a Domain Services Class(RIA Services); I found the option " Generate associated classes for metadata" is disabled when using "Add Domain Service Class Wizard".

Any suggestion? Thanks!


Development environment:
VS 2010 RTM
RIA Services 1.0 RTM
dotConnect to PostgreSQL v5.00 Demo version
PostgreSQL 9.0.3 database

Posted: Fri 18 Feb 2011 14:46
by AndreyR
I have made a test using Silverlight 4, latest dotConnect for PostgreSQL 5.10.103, PostgreSQL 9.0.
I have added a new Devart Entity model to the Models folder, rebuilt the project, and added a Domain Service class successfully.
Could you please send us the application you get the error in?
I have removed your duplicate post.