Answered Windows Phone LINQ to SQL...Drop a Table!

  • Tuesday, January 17, 2012 9:27 PM
     
     

    Can I ues LINQ to SQL to drop a table from a database?  How do I go about doing this?

All Replies

  • Wednesday, January 18, 2012 8:19 PM
     
     Answered

    hi,kiwiAaron;

    i think u what DataContext class , like this:

      public void DropTable(Entity objTable)
            {
                this.ExecuteDynamicDelete(objTable);
            }
  • Thursday, January 19, 2012 4:29 AM
     
     Answered

    I ended up dropping the database and creating it again in the end as this has no impact with the application.

  • Tuesday, May 15, 2012 12:29 AM
     
     

    How did you drop the whole database?