I have a WPF app that updates my database from an in-code entity model. There may be instances that it updates the DB while there are users connected and I would like to put it in Single-User-Mode to avoid errors.
I would also like to avoid using sql. I am aware that I can run sql using:
DataContext.ExecuteCommand("ALTER DATABASE...")
I would rather use a command in a C# library to do this but I dont know where to look.
Is there a way to set the DB to SUM without using SQL?