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

    Question

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

    Tuesday, January 17, 2012 9:27 PM

Answers

  • hi,kiwiAaron;

    i think u what DataContext class , like this:

      public void DropTable(Entity objTable)
            {
                this.ExecuteDynamicDelete(objTable);
            }
    Wednesday, January 18, 2012 8:19 PM
  • I ended up dropping the database and creating it again in the end as this has no impact with the application.

    Thursday, January 19, 2012 4:29 AM

All replies

  • hi,kiwiAaron;

    i think u what DataContext class , like this:

      public void DropTable(Entity objTable)
            {
                this.ExecuteDynamicDelete(objTable);
            }
    Wednesday, January 18, 2012 8:19 PM
  • I ended up dropping the database and creating it again in the end as this has no impact with the application.

    Thursday, January 19, 2012 4:29 AM
  • How did you drop the whole database?

    Tuesday, May 15, 2012 12:29 AM