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
Post a Comment