LINQ to SQL: Maintain FK-constraints

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jesper Lund Stocholm

    LINQ to SQL: Maintain FK-constraints

    I recieve a bunch of data (in a CSV-file) that I need to persist in a
    relational data structure with foreign keys etc. I would like to use LINQ
    to do this, but I am not sure how to do it.

    I have seen some posts here where a single row is added to a table - that
    works fine. But here I need to add rows to multiple tables - with the
    corresponding FK-constraints maintained.

    Can you give me some hints to achieve this? Is LINQ the right choice for
    this task - or should I return to regular SQL ADO.Net for this?

    Thanks, in advance

    :o)

    --
    Jesper Lund Stocholm

Working...