Entity Framework Core: Database first — oracle-tech

    Forum Stats

  • 3,708,688 Users
  • 2,241,109 Discussions
  • 7,840,539 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

We are trying to add a tables in program(Reverse Engineering) using Scaffold-DbContext command. It is working fine for almost all tables but giving error for one particular table:

Value cannot be null. (Parameter 'column')

The table contains a virtual column. Please suggest how issue can be resolved.

Scaffold-DbContext "DATA SOURCE=Datasource;PASSWORD=xxxxxx;USER ID=xxxxx" Oracle.EntityFrameworkCore -OutputDir Models -Tables PURCHASEORDER -Force  -Context "AppDBContext"

Answers

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

    I just added a virtual column to the Blogs table sample and was able to scaffold it successfully. Can you provide the create script for the table in question?

  • User_N0CPGUser_N0CPG Posts: 1 Newbie

    Please, where can I Download Scaffold-DbContex tool ?

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

    Scaffold-DbContext is part of the EF Core tools download from Microsoft.

Sign In or Register to comment.