Created
May 8, 2014 17:15
-
-
Save kjlape/5c44c703459ab9bcd3c7 to your computer and use it in GitHub Desktop.
Example of how to use the new EF code in CloudPanel...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using (var ctx = new CloudPanelContext(@"Database=[Name your DB];Server=.\SQLSERVER;Integrated Security=true")) | |
| { | |
| // Do stuff with data... | |
| ctx.SaveChanges(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment