Created
October 6, 2018 00:53
-
-
Save gavilanch/73ddbf04a316a3b9834eccf3cd33ad8a to your computer and use it in GitHub Desktop.
Combinando Where y Select
This file contains hidden or 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 (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