Skip to content

Instantly share code, notes, and snippets.

@BernardGatt
Created September 29, 2010 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BernardGatt/602790 to your computer and use it in GitHub Desktop.
Save BernardGatt/602790 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EMSampleBL.Process
{
public class Employee
{
public List<EMSampleDL.vEmployeeDepartment> GetAllEmployeeDepartments()
{
using (EMSampleDL.AdventureWorksEntities context = new EMSampleDL.AdventureWorksEntities())
{
return context.vEmployeeDepartments.ToList();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment