urfnet / URF.Core

Unit of Work & Repositories Framework - .NET Core, NET Standard, Entity Framework Core. 100% extensible & lightweight.
https://github.com/urfnet
MIT License
309 stars 62 forks source link

Concurrency Issues URF.Core Applychanges and SaveChanges #31

Closed ydlkrishna closed 6 years ago

ydlkrishna commented 6 years ago

I am trying to add data into a table that has Instead of trigger that was throwing DBConcurrency issue which has gone away after adding a select statement as suggested in the below link in the trigger. https://stackoverflow.com/questions/5820992/error-when-inserting-into-table-having-instead-of-trigger-from-entity-data-frame?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

However getting another errror saying cast error to convert byte[] into string and sometimes string to int (my table has timestamp field with byte[])

any help on this is highly appreciated as I have convinced all my team to go with URF.Core and got stuck with this, now.

tonysneed commented 6 years ago

This is an issue with Entity Framework Core, not URF per se. Your best bet is to post an issue on the EF Core GitHub Repo, or on Stack Overflow.

As a general observation, you are not supposed to set the value of a timestamp column, because it is set by the database. Most likely you have not set up your model correctly.