5
I am using this mapping to a SQL Server DATETIME field:
Property(X => X.DatNascimento).HasColumnName("DAT_NASCIMENTO").HasColumnType("datetime");
But I have another field that is only TIME that I do not know how to configure:
Property(X => X.HoraLimiteInferiorEntrada).HasColumnName("HORA_LIM_INF_ENTRADA").HasColumnType(??????);
And . Hascolumntype(???????) I put datetime myself?
– Joao Paulo
No. Use
time
.– Leonel Sanches da Silva
I updated the question with the error that gave.
– Joao Paulo
I just had to change the guy. I was
DateTime
before.– Leonel Sanches da Silva