MarimerLLC / cslaforum

Discussion forum for CSLA .NET
https://cslanet.com
Other
31 stars 6 forks source link

Cannot delete data using CSLA 4 which was created using old csla 1.0 #164

Open bhargavgaglani07 opened 8 years ago

bhargavgaglani07 commented 8 years ago

Hi,

We recently upgraded CSLA from 1.0 to 4.0 in our application. When I try to delete data (which was created before upgrade) using EditableList.Remove + Save, it does not delete. But if i use same code to delete data which is created after CSLA upgrade, it works fine!

I used DataPortal_Delete(CriteriaGuid) to handle situation as of now. But I want to know why there is issue with Remove + Save.

rockfordlhotka commented 8 years ago

As I'm sure you are aware, there are a lot of changes from CSLA 1.x to 4.x. I assume you've rewritten your old classes into the modern/current style for the data portal?

bhargavgaglani07 commented 8 years ago

Yes, I have done that.But I could not understand this behavior.

bhargavgaglani07 commented 8 years ago

Any update?

rockfordlhotka commented 8 years ago

We may have some miscommunication - this isn't a widespread issue with CSLA, so I'm not pursuing a solution in terms of a "bug fix" for example.

But I did leave you without a suggestion to move forward, and for that I apologize.

I recommend you put breakpoints in your DAL code and make sure your code is actually executed as you expect. Walk through the code and see what goes wrong.