Convert EntityReference to Entity
问题 Does anyone know how can Convert EntityReference to Entity. protected override void Execute(CodeActivityContext executionContext) { [Input("Email")] [ReferenceTarget("email")] public InArgument<Entity> EMail { get; set; } Entity MyEmail = EMail.Get<Entity>(executionContext); This give me an error. Cannot convert this. 回答1: The shortest answer to your questions is to query the database for the entity that's pointed out (referred to) by the entity reference. I've always viewed entity references