public void UpdateRegistration(User userModel)
{
using (IDbConnection connection = BaseRepository.OpenConnection())
{
string query = "UPDATE [dbo].[TBUser] " +
"(CreatedBy, CreatedDate, ModifiedBy, ModifiedDate) VALUES " +
"(@CreatedBy, @CreatedDate, @ModifiedBy, @ModifiedDate) WHERE " +
"UserId = @UserId;";
connection.Execute(query, userModel);
}
}
I get the following exception while it runs
<Message>An error has occurred.</Message>
<ExceptionMessage>Incorrect syntax near '('.</ExceptionMessage>
<ExceptionType>System.Data.SqlClient.SqlException</ExceptionType>
userModel has all of the properties associated with it.