Monday, July 29, 2013
DbEntityValidationException - Entity framework validation error handling
Friday, July 26, 2013
Unable to update the EntitySet 'EntityName' because it has a DefiningQuery and no element exists in the element to support the current operation.
In my case the problem was incorrect Entity Key setting on my entity in EF Model plus forgetting to set primary key in DB table. After setting primary key for the table which entity pointing too, I needed to update the model and open the EF model and manualy set Entity Key for primary key related member in the entity and clearing Entity Key setting for unnecessary entity members. Then rebuild, it worked. The reason was EF created a compound key made of all non nullable entity members which I had to reset them all.
It was my case but there are other possibilities for this error which already discussed if you search on Internet (Google or bing it)Unable to update the EntitySet 'EntityName' because it has a DefiningQuery and no
Wednesday, July 17, 2013
SQL - Record count for all tables in a DB
SQL - Record count for all tables in a DB
Tuesday, July 16, 2013
How to add a digital ID to adobe reader (.pfx exported certificate file)
How to add a digital ID to adobe reader (.pfx exported certificate file)