/// <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?