Print Page | Close Window

GenerateId on Subclasses

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=975
Printed Date: 03-May-2025 at 8:12am


Topic: GenerateId on Subclasses
Posted By: danielp37
Subject: GenerateId on Subclasses
Date Posted: 27-Oct-2008 at 8:53am
I have an abstract Base Class called ScheduledItem and several subclasses (ScheduledPayment, ScheduledTrade, etc).  When I perform and EntityManager.GenerateId(scheduledPayment, ScheduledItemIdDataEntityProperty) it throws an error of "The EntityType ScheduledItem for Property ScheduledItemId must be of EntityType ScheduledPayment".

How am I supposed to be able to use GenerateId on Subclasses?

Thanks,

Dan



Replies:
Posted By: kimj
Date Posted: 27-Oct-2008 at 1:10pm
Dan, thanks for bringing this to our attention.  This is a bug, and unfortunately there is no workaround at this time.  We'll have this fixed in the next release; if you need a fix sooner, please contact support.



Print Page | Close Window