Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void print()
- {
- DataClassesUserInfoDataContext Userinfo = new DataClassesUserInfoDataContext();
- var custs = from c in Userinfo.users
- select new { Id = c.ID, Name = c.Name, Points = c.Points };
- Console.WriteLine("ID - Name - Points");
- foreach (var cust in custs)
- {
- Console.WriteLine("{0} - {1} - {2}", cust.Id, cust.Name, cust.Points);
- }
- Console.WriteLine("Нажмите любую клавишу для завершения работы...");
- Console.ReadKey();
- Environment.Exit(0);
- }
Add Comment
Please, Sign In to add comment