Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NewEntity creates duplicate entities
Message
 
À
10/05/2007 14:16:09
Danny Green
Aptitude Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01224306
Message ID:
01225789
Vues:
18
Danny,

>Am I correct that there is a bug, or am I doing something wrong?

To you lurkers, I responded to the same question Danny sent via private e-mail:

You’re absolutely right—to get around this for now, add the following code to ABusinessObject in your project:

public override EntityType NewEntity(object defaultValues)
{
DataRow Row = this.NewRow(defaultValues);
EntityType EntityObject = this.CreateEntityObject();
EntityObject.SetDataRow(Row);
return EntityObject;
}

I’ll make the fix here which will be in the next MM .NET update and give you credit in the What’s New Guide!

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform