Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MM.Net 3.6 Beta 3
Message
De
25/02/2010 11:11:22
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MM.Net 3.6 Beta 3
Divers
Thread ID:
01450989
Message ID:
01450989
Vues:
144
We switched our 3.5 code to use the 3.6 Beta 3 version of MM.Net. We are now encountering the following error when trying to Delete an entity:

Error message:
"Entity Framework object query execution requested, but no Entity Framework data access class has been specified for this business object"

We tried to regen our Business Objects making sure that the Entity Framework checkbox was not selected, and we explicitly added the EntityFramework flag in the Object, but we're still getting the same error message.

The Business Object Constructor code is as follows:
/// <summary>
/// Constructor
/// </summary>
public PartModel()
{
this.EntityFramework = false;
this.TableName = "PartModels";
this.PhysicalDbcObjectName = "dbo.PartModels";
this.PrimaryKey = "pk_partModelAutoKey";
this.HookConstructor();
this.EntityCentric = true;
}
The code to delete the entity is as follows:
// Get the selected item
PartModelEntity partModelEntity = (PartModelEntity)PartModelDataGrid.SelectedItem;
// Delete the entity
if (this.DeleteEntity(this._partmodel, partModelEntity))
{
   //Do something
}
Any ideas? A bug perhaps?

Thanks!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform