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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -