Language: C#
stufff
1: using (EntityConnection conn = new EntityConnection("name=PayrollEntities")) 2: { 3: conn.Open(); 4: 5: // Entity SQL 6: string sQueryString = "SELECT VALUE e FROM PayrollEntities.Employees AS e"; 7: 8: using (EntityCommand comm = new EntityCommand(sQueryString, conn)) 9: { 10: EntityDataReader reader = comm.ExecuteReader(CommandBehavior.SequentialAccess); 11: 12: while (reader.Read()) 13: { 14: Console.WriteLine(reader["FirstName"]); 15: } 16: } 17: 18: 19: } 20: 21: Console.ReadLine();
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

