Troy Spjute
My feedback
3 results found
-
4 votes
Troy Spjute
supported this idea
·
An error occurred while saving the comment -
14 votes
An error occurred while saving the comment
Troy Spjute
commented
This should also be done for plugin assemblies, as it will make removing old steps from managed solutions easier. It would be great to copy all plugin steps/images/etc and then unregister all of the old ones.
Troy Spjute
supported this idea
·
-
2 votes
Troy Spjute
shared this idea
·
While you are making changes to the ToEntityReference in the BaseProxyBlass, I would like the following code to be implemented to also add the Name of the entity reference. It would also require that all generated types specifically override the PrimaryNameAttribute (but they basically do already)
```
public virtual string PrimaryNameAttribute { get; }
//
// Summary:
// Creates a reference for the current entity instance.
public new EntityReference ToEntityReference()
{
if (Id == Guid.Empty) return null;
var eRef = new EntityReference(LogicalName, Id)
{
RowVersion = RowVersion
};
if (!string.IsNullOrEmpty(PrimaryNameAttribute) && this.Contains(PrimaryNameAttribute))
{
eRef.Name = this.GetAttributeValue<string>(PrimaryNameAttribute);
}
return eRef;
}
```