none
Can't connect my .mdf file to my datacontext ?? RRS feed

  • Question

  • Hi ,

    I have a database file that is called (Trial.mdf)

    and I am currently using WPF , C# , LINQ to SQL in my project

    I built a dbml file , and added the .mdf file to my project , and I have also wrote some code to update the databse (Trial.mdf) but all the updates are actually being done on the datacontext and the database isn't updated at all !!

    is there like a way to connect the database to my datacontext ??

    why can't my program see the .mdf file at all ??

    Tuesday, November 2, 2010 12:23 PM

Answers

  • Hi,

    First of all, can you get data from your database?

    If you can read data but you can't update data, it is another problem...

    Please, check this first.

    Best regards,

    JAReyes.


    Please remember to Vote & "Mark As Answer" if this post is helpful to you.
    Por favor, recuerda Votar y "Marcar como respuesta" si la solucion de esta pregunta te ha sido útil.
    • Marked as answer by liurong luo Tuesday, November 9, 2010 10:54 AM
    Tuesday, November 2, 2010 1:21 PM

All replies