Entity Framework Core: Database first — oracle-tech

    Forum Stats

  • 3,708,735 Users
  • 2,241,116 Discussions
  • 7,840,565 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Entity Framework Core: Database first

User_RPFNHUser_RPFNH Posts: 1 Newbie
edited July 2020 in ODP.NET

I'm re-working an old application to use EF.  I have tried both core and framework to make the code-first classes from the existing database.  The work, but I would like them to adhere to the C# standards for proprieties.  Can we make this change?

What is currently made

[StringLength(100)]

public string IP_ADDRESS { get; set; }

What I think it should be

[Column("IP_ADDRESS")]

[StringLength(100)]

public string IpAddress { get; set; }

Answers

  • Alex Keh-OracleAlex Keh-Oracle Posts: 2,720 Employee
    edited July 2020

    Is there an error when you try to use these data annotations?

Sign In or Register to comment.