Skip to content

Instantly share code, notes, and snippets.

@tamizhvendan
Created July 25, 2014 05:37
Show Gist options
  • Save tamizhvendan/7794bb7ac98d6de3b962 to your computer and use it in GitHub Desktop.
Save tamizhvendan/7794bb7ac98d6de3b962 to your computer and use it in GitHub Desktop.
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