EFDAL inheritance - Exception when deleting child (Could not find stored procedure)

Apr 25, 2012 at 9:46 AM

I have 2 entities: TestParent and TestChild.
TestChild inherits from TestParent.

Creating and updating the entitities is no problem.
Deleting a TestParent is no problem.

Deleting TestChild always gives the exception:
System.Data.UpdateException - System.Data.SqlClient.SqlException - Could not find stored procedure 'dbo.gen_TestParentDelete'.

My testproject can be found at http://www.kyente.be/nhydrate/deletiontest.zip

Coordinator
Apr 25, 2012 at 12:23 PM
Edited Apr 25, 2012 at 1:11 PM
If you will get the new download I just sent to you, this problem is fixed. I am sending you pre-release libraries of course. The format of the parent stored procedure name has changed. There is an underscore in it now. Just get the new generator, re-gen and update database.

--Chris

On Wed, Apr 25, 2012 at 5:47 AM, jeankedotcom <notifications@codeplex.com> wrote:

From: jeankedotcom

I have 2 entities: TestParent and TestChild.
TestChild inherits from TestParent.

Creating and updating the entitities is no problem.
Deleting a TestParent is no problem.

Deleting TestChild always gives the exception:
System.Data.UpdateException - System.Data.SqlClient.SqlException - Could not find stored procedure 'dbo.gen_TestParentDelete'.

My testproject can be found at http://www.kyente.be/nhydrate/deletiontest.zip

Read the full discussion online.

To add a post to this discussion, reply to this email (nhydrate@discussions.codeplex.com)

To start a new discussion for this project, email nhydrate@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com




--
If you have any questions please let me know.

Thank you for your interest,
Christopher Davis, MCAD

Code Generation: http://www.nhydrate.org

Apr 25, 2012 at 2:55 PM

Great.
Indeed, with the new SQL Generator it works.

Thx.