'problems inserting dates with EF Core 5
I'm trying to insert records in my Concursos table by this entity
public class Concurso
{
public int Id { get; set; }
.....
public DateTime FechaArchivo { get; set; }
public DateTime FechaConsulta { get; set; }
public DateTime FechaOrientativa { get; set; }
public DateTime FechaInsercion { get; set; }
....
}
public int AddConcursos()
{
_context.Concursos.AddRange(
new Concurso { Id = 2077196, ...., FechaArchivo = new DateTime(2020,7,7), FechaOrientativa
= new DateTime(2021,7,7), FechaInsercion = new DateTime(2020,7,7),...
);
var dbResult = _context.SaveChanges();
return dbResult;
}
But when I execute the method I get this error
any idea, please?
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

