Skip to content

Can't cast database type timestamp to DateTime #757

Closed

Description

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

  1. austindrenski commented on Dec 13, 2018

    @austindrenski
    Contributor

    Are you trying to use both NodaTime types and BCL types (e.g. DateTime) in the same DbContext?

  2. added this to the 3.0.0 milestone on Dec 13, 2018
  3. austindrenski commented on Dec 13, 2018

    @austindrenski
    Contributor

    This is a known issue that we're trying to solve for v3.0. You can follow the meta-issue #748 for updates.

  4. roji commented on Dec 31, 2018

    @roji
    Member

    Shouldn't this be closed as a duplicate of #748?

  5. austindrenski commented on Dec 31, 2018

    @austindrenski
    Contributor

    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.

  6. removed this from the 3.0.0 milestone on Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions