Here are the examples of the csharp api class Adxstudio.Xrm.AspNet.CrmEntityStore.GetDeactivateRequest(Microsoft.Xrm.Sdk.EntityReference) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: xRM-Portals-Community-Edition
Source File: CrmEntityStore.cs
Source File: CrmEntityStore.cs
protected virtual IEnumerable<OrganizationRequest> ToDeleteRequests(TModel model) { if (Settings.DeleteByStatusCode) { yield return GetDeactivateRequest(new EntityReference(LogicalName, ToGuid(model.Id))); } else { yield return new DeleteRequest { Target = new EntityReference(LogicalName, ToGuid(model.Id)) }; } }