Skip to content

Oracle auto identity insert problem #38

@susahin80

Description

@susahin80

I use attribute mapping like this:

      [DatabaseColumn("ID")]
      [DatabasePrimaryKey]
      public int Id { get; set; }

The Id field maps to the ID field which is identity column.( ID NUMBER Generated as Identity ).

I see no attribute for specifying an identity column. It seems I can use [DatabaseIgnore] attribute, but I want to get the value of ID in read operations, if I use [DatabaseIgnore] I can't access the Id value since it is ignored.

So is there a way to resolve this problem? It would be good to have a Identity attribute which supports identity columns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions