How can add extra columns with models

Jose Arturo Elizondo 1 Reputation point
2021-08-20T15:59:32.967+00:00

Hello, I try add extra columns one context.

Example I have 3 tables tblpro, tblcolumns and tblinfocolumns

I migration the tables. Now I want add columns the tblpro with tblcolumns.

tblpro:
ID | Name | Desc | Price

tblcolumns:
ID | ColumnName | IdColumn

So, I want show a tableTemp where display tblpro with tblcolumns:
ID | Name | ColumnName1 | ColumnName2 | ColumnName3 | ColumnName4 | ... | Desc | Price

Later display the info tblpro with tblinfocolumns

tblinfocolumns:
ID | IdtblPro | IdtblColumns | qty

Some an idea how can do add columns ?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,148 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,248 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,671 questions
{count} votes