C1FlexDataTree with EF6 Code First

Posted by: loic.lucien on 4 August 2020, 7:14 pm EST

    • Post Options:
    • Link

    Posted 4 August 2020, 7:14 pm EST

    Hi,

    I would like to use a C1FlexDataTree (like in the winforms DataTree.sln), but my project is EF6 code-first based. So I dont use direct SQL queries to manipulate my Entities.

    I have navigation properties on my entites (List related to Parent entity), and I try to display them using sub-level nodes,

    Is there a way to do this without DataSet relations configuration (because these relations already exists in my DbContext)?

    I don’t know if I’m clear.

    Thanks!

  • Posted 6 August 2020, 7:50 pm EST

    Hello,

    to be more specific, I’m trying to use the existing relations between entites without redifining them with “DataSet.Relations.Add(DataSet.Tables[…”,

    Indeed, all relations between entites are already defined (code-first).

    Thanks.

  • Posted 7 August 2020, 5:23 am EST

    Hello,

    Can you please take a look at the CodeFirst product sample ‘Orders-EF-CodeFirst’ using C1DataSource. If this does not help, can you please share a stripped down application demonstrating your concern.

    Thanks,

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels