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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -