Group Data or Associated Data

Thread is closed for posting
3 posts, 0 answers
  1. Gaurav
    Gaurav avatar
    10 posts
    Member since:
    Feb 2012

    Posted 09 Feb 2012 Link to this post

    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

    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. PetarP
    PetarP avatar
    754 posts

    Posted 14 Feb 2012 Link to this post

    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,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Gaurav
    Gaurav avatar
    10 posts
    Member since:
    Feb 2012

    Posted 17 Feb 2012 Link to this post

    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.
Back to Top