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
{{ message }}
Repository navigation
Can't cast database type timestamp to DateTime #757
Using version 2.2.0 of Npgsql.EntityFrameworkCore.PostgreSQL and 2.2.0 of Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime. With the following AspnetCore Startup Services Configuration:
services.AddEntityFrameworkNpgsql().AddDbContext<AccountsContext>(options =>{options.UseNpgsql(adminAccountConnectionString, o =>{o.UseNodaTime();});});
Activity
austindrenski commentedon Dec 13, 2018
Are you trying to use both NodaTime types and BCL types (e.g.
DateTime) in the sameDbContext?austindrenski commentedon Dec 13, 2018
This is a known issue that we're trying to solve for
v3.0. You can follow the meta-issue #748 for updates.roji commentedon Dec 31, 2018
Shouldn't this be closed as a duplicate of #748?
austindrenski commentedon Dec 31, 2018
I think we discussed this offline (keeping this open vs closing in favor of the meta-issue)... But in any event, I'm okay with either option.