.net - Mapping new columns in a huge table in Entity Framework -


i have horrifically huge table/view (623 columns) upstream me, , need read source data application, , 2 new columns (varchar(255) , bit) need have been added latest release. using entity framework 6.0, using database first.

caveats: absurd number of columns out of control, may able delete columns don't need in our local copy. it's view we're presented further upstream.

i tried update model database, , new columns not added scalar properties. manually created scalar properties (string & boolean), resulted in error due no mapping table. however, when scroll thru table, don't see columns in list. can go sql , select columns in query, know exist. 2 properties created show in dropdown list of mapping details.

is there upper limit how many columns picked ef? or manual way map scalar properties columns in underlying table when using db first?

this @ least workaround: able columns show deleting table edmx file , adding again. old entity had 579 mapped columns, , new 1 has 623. have redo foreign keys / navigation properties because source lacks them...

it took quite time generate entity, i'm guessing there may issue autogeneration of entities tables absurd numbers of columns, , sam said, moot ef 7.0 (hopefully).


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -