0
(click on this box to dismiss)
Semantic: Cannot coerce host var to type date.
I am very unhappy, this database has many bugs with ADO.NET.
I am trying to insert to datetime to database.
#region FechaNacimiento CUBRIDParameter tblpacientesfechanacimiento = new CUBRIDParameter(); tblpacientesfechanacimiento.CUBRIDDataType = CUBRIDDataType.CCI_U_TYPE_DATE; tblpacientesfechanacimiento.Direction = System.Data.ParameterDirection.Input; tblpacientesfechanacimiento.ParameterName = "?p11"; tblpacientesfechanacimiento.Value = objeto.tblPacientesFechaNacimiento; #endregion com.Parameters.Add(tblpacientesfechanacimiento);
tblPacientesFechaNacimiento is type "DateTime"
When can give me a feedback, I have 3 days fighting with this database, is very annoying!! has many problems!!! I am thinking in rollback to postgresql.
1
Answer
0
the table and the class.
CREATE TABLE "TblPacientes"(
...
"tblpacientesfechanacimiento" date NOT NULL,
"tblpacientesfecharegistro" datetime
...
);
public class BoTblPacientes
{
...
public DateTime? tblPacientesFechaNacimiento { get; set; }
public DateTime? tblPacientesFechaRegistro { get; set; }
...
}the table and the class.
asked last year
viewed 604 times