Skip to content

Instantly share code, notes, and snippets.

@gavilanch
Created October 6, 2018 00:53
Show Gist options
  • Save gavilanch/73ddbf04a316a3b9834eccf3cd33ad8a to your computer and use it in GitHub Desktop.
Save gavilanch/73ddbf04a316a3b9834eccf3cd33ad8a to your computer and use it in GitHub Desktop.
Combinando Where y Select
using (var context = new ApplicationDbContext())
{
var fechas = context.Estudiantes.Where(x => x.FechaNacimiento <= DateTime.Now.AddYears(-18)).Select(x => x.FechaNacimiento).ToList();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment