How do i make Dapper.NET to CRUD my Oracle DB?
I have table named: PLAYER_LOG
it's identity is done by trigger, here is the sql
SELECT SQ_MASTER_SEQUENCE.NEXTVAL INTO tmpVar FROM dual;
:NEW.ID := tmpVar;
my Model is:
public class PlayerLogStorage : IEntity //-> here is the identity
{
public string Cli { get; set; }
public string PlayerAnswer { get; set; }
public DateTime InsertDate { get; set; }
}
here is my insert:
using (IDbConnection ctx = DbConnectionProvider.Instance.Connection)
{
ctx.Query<PlayerLogStorage>("INSERT INTO PLAYER_LOG (CLI, ANSWER, INSERT_DATE) VALUES (:Cli, :PlayerAnswer, :InsertDate)", new
{
Cli = model.Cli,
PlayerAnswer = model.PlayerAnswer,
InsertDate = model.InsertDate
});
}
here is the exception:
ORA-01008: not all variables bound