I would like to make a LINQ query that returns the amount of people who were born in the month.
In MySQL I make this query:
SELECT COUNT(*) AS DataNacimento FROM pessoas WHERE MONTH (DataNascimento) = '12';
In LINQ I tried this query, but it does not accept:
var dataNascimento = db.Pessoas.Where(w => w.DataNascimento == "12").Count();