You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Dapper query that attempts to insert a DateTimeOffset value but fails with ArgumentException: "Invalid data type: 27.".
Simplified version:
varconnectionString="...";varconnection=new FbConnection(connectionString);await connection.QueryFirstAsync<DateTimeOffset>("select cast(@value as timestamp) from rdb$database",new{ Value = DateTimeOffset.UtcNow });
I've debugged the code and it looks like FbParameter.DbType property does not accept DateTimeOffset value.
FirebirdSql.Data.FirebirdClient v10.3.1.
I have a Dapper query that attempts to insert a DateTimeOffset value but fails with ArgumentException: "Invalid data type: 27.".
Simplified version:
I've debugged the code and it looks like FbParameter.DbType property does not accept DateTimeOffset value.
As a workaround I've used DateTime values but it will be much better to have DateTimeOffsert params to work out of the box.
The text was updated successfully, but these errors were encountered: