Note that there are some explanatory texts on larger screens.

plurals
  1. USRobC
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COI could create a child class of the GroupControl and set that property to true, which would work at design time. I would prefer not go through all the instances of GroupControl and update them at this point, though. Something like this would work: public class MyGroupControl : GroupControl { public MyGroupControl() { base.LookAndFeel.UseDefaultLookAndFeel = false; base.LookAndFeel.UseWindowsXPTheme = true; } }
      singulars
    2. CO@NSGaga: I agree with everything you're saying. As I mentioned in my comment to Nick Cardoso's answer, I have a hunch this exception is actually masking the real issue but am not sure at this point how to get to the bottom of this. SaveChanges() call definitely seems to be where things are falling apart, because I've stepped through the code. Why would calling this method from one assembly work but fail when called from another? Why would creating a new object in the AddEntity() method and assigning its properties to the values of the object passed in work? I'd love to hear any ideas. Thanks.
      singulars
    3. CO@NSGaga Thanks for responding. In method b, which works, I'm able to insert the _exact_ same data that fails for Method A. I would rather not have to manually copy each property from the MyEntity object passed in to a new one (as I do in Method B), though. In my edit, I also state that this code works perfectly fine for my automated tests, which actually hit a database. It's weird, though, that when I call this method from my Winforms exe assembly, it fails.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload