Ejemplo n.º 1
0
        public List <string> GetAllEmployeeNames()
        {
            using (var db = new LinqDataClassesDataContext(DatabaseConnectionString.Get()))
            {
                var result = (from e in db.Employees select e.LastName + ", " + e.FirstName).ToList();

                return(result);
            }
        }