Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MM.Net 3.6 Beta 3
Message
From
25/02/2010 11:11:22
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
MM.Net 3.6 Beta 3
Miscellaneous
Thread ID:
01450989
Message ID:
01450989
Views:
143
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!
Next
Reply
Map
View

Click here to load this message in the networking platform