This is a migrated thread and some comments may be shown as answers.

Group Data or Associated Data

2 Answers 37 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gaurav
Top achievements
Rank 1
Gaurav asked on 09 Feb 2012, 08:34 AM
we have generated  "domainmodel.rlinq" through open access orm.

we have 2 tables
Employee                                           Department
          Employee_Id                                Department_Id
          Employee_Name                          Department_Name
          Employee_Code                           Department_Code
          Department_Id                            

we have 2 entity classes in the ".rlinq" file  having structure like above for Employee & Department.

we want out put like below in single entity like below
                Employee_Id              Employee_Name       Employee_Code    Department_Name
                      1                                empName                    001                   relative dept_name         
                      2                                emp1 NAme                 002                   relative dept_name
through RIA Service using DomainService class generated by jst selecting ".rlinq" file for generating service.

We tried to use [Include] and [Association\ but it does not serialize the child/parent table as porperties in generated.cs file in Silverlight Application

2 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 14 Feb 2012, 08:33 AM
Hi Gaurav,

 Can you please share the code of your classes including the attributes you have added. I believe there lies the problem you are facing. I have tested adding the Association and Include attributes with the latest build and I can confirm it works as expected. Please have in mind that if you are adding the attributes directly to your generated classes and later one you change something in your model, the attributes will be deleted on the following code generation.

Kind regards,
Petar
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Gaurav
Top achievements
Rank 1
answered on 18 Feb 2012, 05:49 AM
i got solution for that issue.
jst due to serialization name space reference was missing over there in metadata class


Thanks for you kind response and interest.
Tags
Development (API, general questions)
Asked by
Gaurav
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Gaurav
Top achievements
Rank 1
Share this question
or