c# - Hangfire and Dapper insert throwing System.MissingMethodException Method not found: '?' -
i using dapper , dapper.contrib 1.50.0.0, , executing inside hangfire job.
i trying insert 1 data so:
using (var db = dbfactory.opendbconnection()) { var user = new user { id = id name = name, address = address, phonenumber = phonenumber, email = email }; db.insert(user ); }
but keep getting exception, wrong? have used identical dapper , dapper.contrib version make sure there no versioning conflict. have cleansed project , delete bin folders found , rebuild, still getting error.
system.missingmethodexception method not found: '?'. system.missingmethodexception: method not found: '?'. @ paraminfo72548414-c8a2-4ab0-a498-9eaa0c278243(idbcommand , object ) @ dapper.commanddefinition.setupcommand(idbconnection cnn, action``2 paramreader) @ dapper.sqlmapper.querymultipleimpl(idbconnection cnn, commanddefinition& command) @ dapper.sqlmapper.querymultiple(idbconnection cnn, string sql, object param, idbtransaction transaction, nullable`1 commandtimeout, nullable`1 commandtype) @ sqlserveradapter.insert(idbconnection connection, idbtransaction transaction, nullable`1 commandtimeout, string tablename, string columnlist, string parameterlist, ienumerable`1 keyproperties, object entitytoinsert) @ dapper.contrib.extensions.sqlmapperextensions.insert[t](idbconnection connection, t entitytoinsert, idbtransaction transaction, nullable`1 commandtimeout) @ business.epbt.models.service.xpymntservice`1.submitpaymenttoepbt(string accountno, decimal paidamount, string icommreceiptno, string billtype, string oldaccountno, string pelangganid, string pelangganname, datetime paymentdate, string vpcreceiptno, string fpxtransactionid, string xpynobil, string channel)
i should mention connecting oracle
database, using oracle.manageddataaccess.client
driver.
Comments
Post a Comment