EF Core 3.1 Beta Creating DB with regarding fluent API — oracle-tech

    Forum Stats

  • 3,708,685 Users
  • 2,241,109 Discussions
  • 7,840,538 Comments

Discussions

Howdy, Stranger!

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

EF Core 3.1 Beta Creating DB with regarding fluent API

user606112user606112 Posts: 9
edited July 2020 in ODP.NET

I created the database from the model as in the example of nuget package is demonstrated by using Add-Migration und Update-Database.

I added some fluent-API records to my code after creating the DB because the migration doesn't accept them. How can I create the

database from the model with regarding fluent-API records in advance? It will be necessary to determine the oracle-datatypes and -sizes.

Answers

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

    Before you add you first migration, you can make all your Fluent API changes first. Once done, add the migration and then update the database.

Sign In or Register to comment.