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
Trying to solve an issue (losing milliseconds on DateTime in SQLite database) using a TypeHandler that do conversion between db string (in format "o") and DateTime doesn't pass test because typeMap[DateTime] is processed before custom type handlers.
Probably the solution is to invert the lookup sequence or add the chance for remove a default type map with a brother of
public static void AddTypeMap(Type type, DbType dbType)
as
public static void RemoveTypeMap(Type type)
The text was updated successfully, but these errors were encountered:
By now I have to use Reflection in order to remove from private typeMap the defaults for DateTime and DateTimeOffset.. Not a great solution but only a workaround
Trying to solve an issue (losing milliseconds on DateTime in SQLite database) using a TypeHandler that do conversion between db string (in format "o") and DateTime doesn't pass test because typeMap[DateTime] is processed before custom type handlers.
Probably the solution is to invert the lookup sequence or add the chance for remove a default type map with a brother of
public static void AddTypeMap(Type type, DbType dbType)
as
public static void RemoveTypeMap(Type type)
The text was updated successfully, but these errors were encountered: