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
Post a Comment