Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (var Context = new STDBEntities())
- {
- try
- {
- var Query =
- (
- from c in Context.Clients
- select new
- {
- c.ClientID,
- c.ClientName,
- c.NumberOfUser
- }
- );
- }
- catch
- {
- Context.Connection.Close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment