Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Generate Entity Model Form Exiting Database #7278


User avatar
0
CNS created

i m creating Entity Model from existing databse table using ASP.NET Zero Power Tools . 1- primary Key issue How can i use existing table primary key


1 Answer(s)
  • User Avatar
    1
    yekalkan created

    Tool doesn't directly generate from a database table but defines the columns on its own interface. So most of your columns will be defined. However, primary key of generated entity is always "Id" and you can not change that before generation.

    To change after generation, see https://github.com/aspnetboilerplate/aspnetboilerplate/issues/993