I am trying to use dipper to perform simple crude operations in a SQLite database, but I'm having trouble Because the compiler is blaming an error that I just can not decide
the error in the query "conn.execute ..." is in line and it says:
C #: Several methods' (string, DB manager). (Anonymous)) ':' Dapper. SQLMapper Except (System.Data. IDB Connection, String, System.Data. IDB Transaction, Int ?, System. Data Commands Type)? And 'Dapper SQLMaper. Exit (System.Data.IDBConnect, String, System.Data.Idb Transaction, Int ?, System.Data. Commands Type?) 'DB Manager. C.
Below is my code, I try to put everything here but it seems useful to see it but not too much.
Using the system; Using System.Linq; Using Dapar; Insert public bubble (scheduler history record) {int res = -1; If (record == zero) return false; Try {// var db = new SQLDatabase (); String sqlquery = "Enter the value in the scheduler history (JobID, Nextjob, Last Job, ExecuteOnStart) (@jobid, nexbob, @lastjob, @executeonstart);"; (Use var conn = new System.Data.SQLite.SQLiteConnection (m_connString)) (conn.Open (); Conn.Execute (sqlquery, new {JobId = record.JobId, NextJob = `record.NextJob, LastJob = record. LastJob, ExecuteOnStart = record.ExecuteOnStart}; `Returns (RACTC; 0);}} Grip (Exception Pre) {LogWriter.Error (ex); Description is False;}}
Note that "using Dapar;" VS has not been used by 2012, and the method that has not been used has already done it, because I was thinking that Dapar would be useful. [/ P> < / Div>
No comments:
Post a Comment