OzZy_M

clients

Feb 15th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1.     using (var Context = new STDBEntities())
  2.     {
  3.       try
  4.       {
  5.         var Query =
  6.           (
  7.             from c in Context.Clients
  8.             select new
  9.             {
  10.               c.ClientID,
  11.               c.ClientName,
  12.               c.NumberOfUser
  13.             }
  14.           );
  15.  
  16.       }
  17.       catch
  18.       {
  19.         Context.Connection.Close();
  20.       }
  21.  
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment