c# - Table saved only while running -


I'm new to working with the unit framework and used model first approach. I then tried to create a table, but when the program was closed, it is finished.

My code: objCtx = new EntityModelContainer ()) {// Join Student ExecuteStoreCommand string command = "Create Tables Clients (ID Integer, Name Navigator (4000))" using ; Int InsertedRows = objCtx.ExecuteStoreCommand (command); }

How can I save tables permanently?

You objCtx.SaveChanges (); ojbCtx has been found before .

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -