EntitiesInError does not contain failed deletes


when checking entitiesinerror after submit, failed updates , inserts captured, if entity fails delete (due foreign key constraint in db) entitiesinerror empty. why? understand it's bit different technically because entity validates ok on client, should marked somehow when database says cannot deleted. if have multiple deletes it's impossible (as far can tell) see entity failed. have solution this?

all entities have entityconflict object has isdeleted property. property set true when try delete entity , doesn't exist in db anymore. in case, no exception thrown.

when try delete , foreign key error occurs exception thrown , error submitoperation display.

you can check sql error number or name foreign keys "fk_xxxx". whenever error occurs when submitting you can check if message contains "fk_" , in case know why happened.



Silverlight  >  WCF RIA Services with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........