Git Product home page Git Product logo

Comments (8)

borisdj avatar borisdj commented on August 16, 2024

I don't see why it should take too long to find difference between columns of one table compared to one Entity.
Still I think this could be added.
That exception is being thrown on sqlBulkCopy.WriteToServer(reader) in Insert method but it gives no more info so specific column could not be read from there.
What could be done is that additional function be added into catch segment which will check what column is missing. For this CreateTableCopy could be used since that function will return specific info like this:

Invalid column name 'MissingColumnName'.

I will see to implement it with next version.

from efcore.bulkextensions.

CodySchrank avatar CodySchrank commented on August 16, 2024

Awesome thanks! I agree its not a super big deal but when the table has 50+ columns and I'm not even aware that a migration was created (I didn't do it) then this could be very helpful again in the future.

from efcore.bulkextensions.

borisdj avatar borisdj commented on August 16, 2024

Improvement added with Nuget 2.1.8

from efcore.bulkextensions.

StevenRasmussen avatar StevenRasmussen commented on August 16, 2024

I just ran into this issue and found that there was a fix for it... which is great! However, I updated the package and now I don't get any error, but it also doesn't actually insert any records into the table. Any thoughts on this?

from efcore.bulkextensions.

StevenRasmussen avatar StevenRasmussen commented on August 16, 2024

After investigating, there were some columns that did not have the same case... but I was anticipating that I would still receive an error, just a more friendly one that would let me know which column/s were the offenders. Is that not the case?

from efcore.bulkextensions.

borisdj avatar borisdj commented on August 16, 2024

Try now with 2.1.9 version.

from efcore.bulkextensions.

StevenRasmussen avatar StevenRasmussen commented on August 16, 2024

@borisdj - I updated to 2.1.9 and am getting the exception now (as expected), but I was under the impression that the enhancement talked about here was going to tell me which column/s are the offenders. Did I misunderstand something?

from efcore.bulkextensions.

borisdj avatar borisdj commented on August 16, 2024

It seems that you have some different situation where specific exception in not being catch.
Write more info on how to reproduce it and try debugging with library source.

from efcore.bulkextensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.