Created
July 25, 2014 05:37
-
-
Save tamizhvendan/7794bb7ac98d6de3b962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using HRD.DataAccess; | |
namespace HrdConsoleApp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var hrdEntities = new HRDEntities(); | |
foreach (Employee employee in hrdEntities.Employees) | |
{ | |
Console.WriteLine("Name: " + employee.Name); | |
Console.WriteLine("Department: " + employee.Department.Name); | |
Console.WriteLine("########################"); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment