Hi,
How about a Code First example for OData and JSON?
I tried it but while viewing my OData in browser, it has errors.
I'm using an EntityBase as the base class of my Entities.
[ProvideEntityAspect]
[DataContract(IsReference = true)]
public abstract class EntityBase : IEntity, IPropertyChangedInterceptor
{
public EntityAspect EntityAspect
{
get { return EntityAspect.Wrap(this); }
}
public virtual void OnPropertyChanged(PropertyChangedEventArgs e)
{
}
}
}
I applied an attribute in the EntityBase but it didn't work either
[IgnoreProperties(@"EntityAspect", @"AAAA_EntityAspectForSerialization")]
and the DataServiceKey attribute per entity.
Thanks,
Von