c# - ScaffoldColumn in DBML classes? -


i've created dbml file, , dragged tables onto designer. on pages, editor form displays field primary key entities.

is there way add scaffoldcolumn attribute primary key column table in dbml designer?

yes, you'll loose ability have linq-to-sql auto generate classes.

however mvc works lot better viewmodels, small dto classes contain view needs. using database , persistence classes in views considered bad form because tightly couples entire application together.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -