Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Entity Framework, create CRUD forms in Column order as in existing SQL Table (.CORE)

$
0
0

Within Visual Studio 2015 Professional a c#, Dotnet Core  web app(.core).. added entity frame work and imported the sql tables

All Created and when I run the webapp CRUD functions all work as expected

QUESTION:- The items on the form I require to be input in the same order as within the SQL table

    Example:- 

Column ID      Create Table Employees Order Below:-                                Current form (Employees.cshtml)  (Sample below)

1                    EmployeeID int                                                                  EmployeeID

2                    LastName varchar(50)                                                       Address1

3                    Address1 varchar(50)                                                         LastName

4                    Address2 varchar(50)                                                        Address2

This applies to Create and Edit Forms......  

When the application is executed within Visual Studio or Published are input out of Order

For one table I can change the order, but I have a heap load to create

The Model I have amended to be in Column order, but the forms are created in Alphabetical order?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>