c# - System.Data.Entity.Infrastructure.DbUpdateException -



c# - System.Data.Entity.Infrastructure.DbUpdateException -

i created database first entity info model under wpf project. added datagrid , binded model. i've been trying add together crud capability.

all until added button , tied click event save updated data. 1 time clicked on i'd next runtime error.

system.data.entity.infrastructure.dbupdateexception: error occurred while updating entries. see inner exception details.

so checked inner exception , got following:

system.data.entity.core.updateexception: error occurred while updating entries. see inner exception details. ---> system.notsupportedexception: modifications tables primary key column has property 'storegeneratedpattern' set 'computed' not supported. utilize 'identity' pattern instead. key column: 'symbol_and_benchmarkid'. table: 'benchmarkmodel.store.weights'.

where storegeneratepattern can prepare this?

its located in .edmx file. search storegeneratepattern in file.

when create ado model through visual studio's code creation buttons, code generated done few assumptions. in case computed column thats causing problem.

this specific issue able solve , wanted give back. edits welcome!

c# wpf entity-framework

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -