Hmmm ... I think I'll really be demonstrating my newbie cred now ...
Trying to perform a simple entity deletion, as outlined here:
Only one minor problem ... none of my entities appear to have an "EntityAspect" property I can change!
I get my entity from the backend store like this:
var contactType = manager.Gen_ContactType
.Where(c => c.ContactTypeId == 7)
.FirstOrNullEntity();
The contactType entity that is returned has all the properties I expect ... but no "EntityAspect" property.
Interestingly, when I bound a grid to the object class in my domain model, the grid is actually showing an "EntityAspect" property.
So ... what am I doing wrong?
I will point out that I used the "Code Second" method of generation, and opted to include the OData option during creation. As a result, my class header looks like this:
/// <summary>The auto-generated Gen_ContactType class. </summary>
[IbAop.ProvideEntityAspect]
[DataContract(IsReference = true)]
[Table("Gen_ContactType", Schema = "dbo")]
[IgnoreProperties(@"EntityAspect")]
[DataServiceKey(@"ContactTypeId")]
public partial class Gen_ContactType
{
All of the samples I've seen appear to pre-date the incorporation of PostSharp, and none seem to have the "EntityAspect" in the "IgnoreProperties".
I've tried removing the "IgnoreProperties" attribute ... but that doesn't appear to make any difference.
Any suggestions?
T