Replace obsolete AssociationAttribute with new EntityAssociationAttribute on client
The client now uses EntityAssociationAttribute internally for all logic
The old AssociationAttribute is still discovered and mapped to an EntityAssociationAttribute in case an old version of the code generation has been used.
Code generation has been updated to generate EntityAssociationAttribute instead of AssociationAttribute
PR Classification
This pull request involves an API change, specifically replacing the AssociationAttribute class with the EntityAssociationAttribute class across several files.
PR Summary
The pull request primarily focuses on the transition from AssociationAttribute to EntityAssociationAttribute in the codebase.
A new EntityAssociationAttribute.cs file has been added, defining the new class used to mark an Entity member as an association.
The AssociationAttribute class has been replaced with the EntityAssociationAttribute class in multiple files including ChangeSetBuilder.cs, Entity.cs, EntityCollection.cs, EntityRef.cs, EntitySet.cs, MetaMember.cs, and IEntityCollection.cs.
In MetaMember.cs, the AssociationAttribute property has been replaced with the EntityAssociationAttribute property, with added logic to handle the transition.
The AttributeGeneratorHelper.cs file in OpenRiaServices.Tools.TextTemplate has been updated to translate all AssociationAttribute to EntityAssociationAttribute on the client.
A new EntityAssociationAttributeBuilder.cs file has been added in the OpenRiaServices.Tools namespace, defining a custom attribute builder for EntityAssociationAttribute instances.
Replace obsolete
AssociationAttribute
with newEntityAssociationAttribute
on clientEntityAssociationAttribute
internally for all logicAssociationAttribute
is still discovered and mapped to anEntityAssociationAttribute
in case an old version of the code generation has been used.EntityAssociationAttribute
instead ofAssociationAttribute
PR Classification
This pull request involves an API change, specifically replacing the
AssociationAttribute
class with theEntityAssociationAttribute
class across several files.PR Summary
The pull request primarily focuses on the transition from
AssociationAttribute
toEntityAssociationAttribute
in the codebase.EntityAssociationAttribute.cs
file has been added, defining the new class used to mark an Entity member as an association.AssociationAttribute
class has been replaced with theEntityAssociationAttribute
class in multiple files includingChangeSetBuilder.cs
,Entity.cs
,EntityCollection.cs
,EntityRef.cs
,EntitySet.cs
,MetaMember.cs
, andIEntityCollection.cs
.MetaMember.cs
, theAssociationAttribute
property has been replaced with theEntityAssociationAttribute
property, with added logic to handle the transition.AttributeGeneratorHelper.cs
file inOpenRiaServices.Tools.TextTemplate
has been updated to translate allAssociationAttribute
toEntityAssociationAttribute
on the client.EntityAssociationAttributeBuilder.cs
file has been added in theOpenRiaServices.Tools
namespace, defining a custom attribute builder forEntityAssociationAttribute
instances.