OzZy_M

Server LINQ

Feb 15th, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1.       using (var Context = new STDBEntities())
  2.       {
  3.         try
  4.         {
  5.           var QueryServer = (
  6.             from s in Context.Servers
  7.             where s.Active == true
  8.             select new
  9.             {
  10.               s.ServerName,
  11.               s.PrimaryContactID,
  12.               s.
  13.               s.ServerLocation,
  14.               s.ServerType,
  15.               s.IsLocked
  16.             }
  17.  
  18.           );
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment