Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Shared Function GetNewContext() As YourDataContext
- Dim dContext As YourDataContext
- dContext = New YourDataContext()
- dContext.Connection.ConnectionString = MyConnectionStringFromTheWebConfig()
- Return dContext
Add Comment
Please, Sign In to add comment