Property | Type | Description | |
---|---|---|---|
ApplyStateAndStatus | void | ||
CheckStateAndStatus | void | ||
CreateNewLines | void | ||
DetectDuplicates | Entity | ||
GetBaseCurrencyPriceLevel | Entity | ||
GetComplexTypeFromEntity | ComplexType | ||
GetDeletedChildren | IEnumerable |
||
GetDictionary | object>.Dictionary | ||
GetDynamicInstance | Entity | ||
GetDynamicInstance | Entity | ||
GetDynamicInstance | Entity | ||
GetDynamicInstanceToDelete | Entity | ||
GetKeys | List |
||
GetObjectDefinitionInternal | ObjectDefinition | ||
GetReferenceInstanceType | Xrm.Sdk.EntityReference | ||
InitCollectionFields | void | ||
IsValidGuidString | bool | ||
PopulateDictionary | void | ||
PopulateDictionary | void | ||
PopulateOptionSetValueDictionary | void | ||
PopulatePartyList | void | ||
PrepEntityForCreate | void | ||
PrepEntityForUpdate | void | ||
QueryByEntityKey | Entity | ||
RemoveProperties | void | ||
RemoveStateCode | Xrm.Sdk.OptionSetValue | ||
RemoveStatusCode | Xrm.Sdk.OptionSetValue | ||
RetrieveChildEntities | List |
||
RetrieveEntityReferenceValue | Xrm.Sdk.EntityCollection | ||
RetrieveMultipleDynamicEntities | RetrieveMultipleResponse | ||
SetOwner | void | ||
SetProperties | void |
Method | Description | |
---|---|---|
AssignReferencePropertyValue ( Xrm.Sdk.EntityReference reference, Entity entity, string propertyToBeAssignedValue ) : void |
Assigns an object to be the value for a property on a If the |
|
BuildCriteriaFields ( ) : ICollection |
Builds up the
|
|
CallCrmExecuteWebMethod ( OrganizationRequest request ) : OrganizationResponse |
Calls the target
|
|
CallMetadataExecuteWebMethod ( OrganizationRequest request ) : OrganizationResponse |
Calls the target
|
|
CreateNewCompoundEntity ( Entity entity, Entity children ) : void |
Issues a
|
|
CreateNewEntity ( Entity entity ) : void |
Issues a
|
|
CreateUpdateChildEntities ( object>.Dictionary |
Called by the WriteParentEntity method after the parent entity has been created to allow for the creation of any associated children entities.
|
|
CreateUpdateChildInstanceForField ( Guid parentKey, Entity childEntity, string collectionFieldName ) : void |
Used to actually create instances of the child entities in an inherited class.
|
|
CrmObjectProvider ( ) : Common.System |
Initializes a new instance of the CrmObjectProvider class.
|
|
DeleteEntity ( object value, string keyProperty ) : void |
Issues an
|
|
FindEntities ( ICriterion criterion ) : ICollection |
Gets an array of
|
|
GetDeletedEntityKeys ( DateTime modifiedDate ) : ICollection |
Gets an array of
|
|
GetModifiedEntityKeys ( DateTime modifiedDate, string keyPropertyName ) : Guid[] |
Gets an array of
|
|
GetNewEntityInstance ( string propertyName, string propertyValue, string entityName ) : Entity |
Get a new instance of a
|
|
GetSetStateRequest ( int stateToSet, int statusToSet, Guid entityId ) : OrganizationRequest |
Gets the SetState request message for this entity.
|
|
MapActivityPartyReferences ( object>.Dictionary |
Maps activity party references
|
|
MapEntityReference ( FieldDefinition field, object>.Dictionary |
Gets a new
|
|
MapLookup ( object>.Dictionary |
Gets a new The overload can be used to map properties in a specific order. |
|
RemoveDeletedAddresses ( string childEntityName, ICollection |
Removes deleted addresses from If the |
|
RemoveDeletedChildren ( string childEntityName, ICollection |
Removes children from a parent that appear to be deleted in the source system.
|
|
RemoveDeletedChildren ( string childEntityName, ICollection |
Removes children from a parent that appear to be deleted in the source system.
|
|
RemoveDeletedChildren ( string childEntityName, ICollection |
Removes children from a parent that appear to be deleted in the source system.
|
|
RetrieveEntityAsDictionary ( Entity target ) : object>.Dictionary |
Gets a
|
|
SetLookupType ( FieldDefinition field, Xrm.Sdk.EntityReference returnedLookup ) : void |
Sets the type property on a given
|
|
SetState ( Entity entity ) : void |
Sets the state code for this instance.
|
|
UpdateCompoundEntity ( Entity entity, Entity children ) : void |
Issues an
|
|
UpdateEntity ( Entity entity ) : void |
Issues an
|
|
WriteParentEntity ( object value ) : void |
Writes an The entity's primaryKey property is set to a new random |
|
WriteParentEntity ( object value, string queryProperty, ICriterion criterion ) : void |
Writes an The entity's primaryKey property is set to a new random |
Method | Description | |
---|---|---|
ApplyStateAndStatus ( Entity entity, Xrm.Sdk.OptionSetValue state, Xrm.Sdk.OptionSetValue status ) : void |
Updates a
|
|
CheckStateAndStatus ( object>.Dictionary |
Checks if the state of an entity is already properly set and removes it if it is, otherwise it is set.
|
|
CreateNewLines ( Entity children ) : void |
Sets the child line entities to be in a created state.
|
|
DetectDuplicates ( OrganizationRequest request ) : Entity |
Detects if duplicates were encountered when sending a create request into CRM.
|
|
GetBaseCurrencyPriceLevel ( ) : Entity |
Gets the CRM price level for the base currency of the organization.
|
|
GetComplexTypeFromEntity ( Entity entity ) : ComplexType |
Gets the
|
|
GetDeletedChildren ( string childEntityName, ICollection |
Gets the children that are in CRM currently that were not in the supplied collection on an update operation
|
|
GetDictionary ( Entity entity, DynamicCrmAdapter adapter, List |
Gets a
|
|
GetDynamicInstance ( string queryProperty, object>.Dictionary |
Gets an instance of the
|
|
GetDynamicInstance ( string queryProperty, object>.Dictionary |
Gets an instance of the
|
|
GetDynamicInstance ( string queryProperty, string queryValue, string entityName ) : Entity |
Gets an instance of the
|
|
GetDynamicInstanceToDelete ( string queryValue, string keyProperty, string entityName ) : Entity |
Gets an instance of the
|
|
GetKeys ( RetrieveMultipleRequest request ) : List |
Gets a
|
|
GetObjectDefinitionInternal ( ) : ObjectDefinition | ||
GetReferenceInstanceType ( FieldDefinition field ) : Xrm.Sdk.EntityReference |
Gets an instance of a
|
|
InitCollectionFields ( ) : void |
Initializes this provider's list of collection fields
|
|
IsValidGuidString ( string guidString ) : bool |
Checks a supplied string to determine if it can be converted into a Guid.
|
|
PopulateDictionary ( Entity dynamicEntity, object>.Dictionary |
Populates a
|
|
PopulateDictionary ( Entity dynamicEntity, object>.Dictionary |
Populates a
|
|
PopulateOptionSetValueDictionary ( Entity dynamicEntity, object>.Dictionary |
Populates a
|
|
PopulatePartyList ( Entity dynamicEntity, object>.Dictionary |
Populates the activity party list for a given CRM
|
|
PrepEntityForCreate ( Entity entity ) : void |
Sets the owning user and override created on entity attributes.
|
|
PrepEntityForUpdate ( Entity entity ) : void |
Removes properties and sets state for an entity
|
|
QueryByEntityKey ( string entityUniqueId, string entityName ) : Entity |
Queries CRM for the entity with the supplied id.
|
|
RemoveProperties ( Entity entity, object>.Dictionary |
Removes properties from the
|
|
RemoveStateCode ( Entity entity ) : Xrm.Sdk.OptionSetValue |
Removes the state code from a
|
|
RemoveStatusCode ( Entity entity ) : Xrm.Sdk.OptionSetValue |
Removes the status code from a
|
|
RetrieveChildEntities ( object>.Dictionary |
||
RetrieveEntityReferenceValue ( FieldDefinition field, |
||
RetrieveMultipleDynamicEntities ( string queryValue, string keyProperty, string entityName ) : RetrieveMultipleResponse |
Calls the CRM service and retrieves the entities that match the modifiedDateValue expression that is built up based on the supplied values
|
|
SetOwner ( Entity entity ) : void |
Sets the assignee to be the owning user.
|
|
SetProperties ( object>.Dictionary |
protected static AssignReferencePropertyValue ( Xrm.Sdk.EntityReference reference, Entity entity, string propertyToBeAssignedValue ) : void | ||
reference | Xrm.Sdk.EntityReference | The |
entity | Entity | The |
propertyToBeAssignedValue | string | The name of the property on the |
return | void |
protected BuildCriteriaFields ( ) : ICollection |
||
return | ICollection |
protected CallCrmExecuteWebMethod ( OrganizationRequest request ) : OrganizationResponse | ||
request | OrganizationRequest | The |
return | OrganizationResponse |
protected CallMetadataExecuteWebMethod ( OrganizationRequest request ) : OrganizationResponse | ||
request | OrganizationRequest | The |
return | OrganizationResponse |
protected CreateNewCompoundEntity ( Entity entity, Entity children ) : void | ||
entity | Entity | The |
children | Entity | The |
return | void |
protected CreateNewEntity ( Entity entity ) : void | ||
entity | Entity | The |
return | void |
protected CreateUpdateChildEntities ( object>.Dictionary |
||
dictionary | object>.Dictionary | The |
parentKey | Guid | The |
collectionField | FieldDefinition | The |
return | void |
protected CreateUpdateChildInstanceForField ( Guid parentKey, Entity childEntity, string collectionFieldName ) : void | ||
parentKey | Guid | The |
childEntity | Entity | The child entity to be created in the form of a |
collectionFieldName | string | The name of the field in the |
return | void |
protected CrmObjectProvider ( ) : Common.System | ||
return | Common.System |
protected DeleteEntity ( object value, string keyProperty ) : void | ||
value | object | The dictionary that contains the entity to be deleted. |
keyProperty | string | The property on the entity that holds the entity's key. |
return | void |
protected FindEntities ( ICriterion criterion ) : ICollection | ||
criterion | ICriterion | The |
return | ICollection |
protected GetDeletedEntityKeys ( DateTime modifiedDate ) : ICollection | ||
modifiedDate | DateTime | The |
return | ICollection |
protected GetModifiedEntityKeys ( DateTime modifiedDate, string keyPropertyName ) : Guid[] | ||
modifiedDate | DateTime | The |
keyPropertyName | string | The name of the property on the provided entity that hold the primary key. |
return | Guid[] |
protected GetNewEntityInstance ( string propertyName, string propertyValue, string entityName ) : Entity | ||
propertyName | string | The name of the property to initialize. |
propertyValue | string | The value to set the property to be initialized to. |
entityName | string | The logical name of the entity type to create. |
return | Entity |
protected GetSetStateRequest ( int stateToSet, int statusToSet, Guid entityId ) : OrganizationRequest | ||
stateToSet | int | An |
statusToSet | int | An |
entityId | Guid | The |
return | OrganizationRequest |
protected MapActivityPartyReferences ( object>.Dictionary |
||
dictionary | object>.Dictionary | Contains the root entity as a |
entity | Entity | The entity to map the activity parties to, if the property that is being mapped is an option set. |
propertyName | string | The property that the activities are associated to on the root entity. |
field | FieldDefinition | The |
return | Xrm.Sdk.EntityCollection |
protected MapEntityReference ( FieldDefinition field, object>.Dictionary |
||
field | FieldDefinition | The field that is currently being set to a |
mappedLookupObject | object>.Dictionary | The |
return | Xrm.Sdk.EntityReference |
protected MapLookup ( object>.Dictionary |
||
dictionary | object>.Dictionary | The |
entity | Entity | The |
propertyName | string | The name of the current property from the |
ct | ComplexType | An instance of a |
field | FieldDefinition | The field that is currently being set to a |
mappedValue | object>.Dictionary | The |
return | Xrm.Sdk.EntityReference |
protected RemoveDeletedAddresses ( string childEntityName, ICollection |
||
childEntityName | string | The name of the child entity to be deleted |
childKeys | ICollection |
An |
compAttribute | string | The attribute to use when determining if a child in the collection has been deleted or not |
parentKey | Guid | The |
parentAttributeName | string | The name of the parent entities key attribute |
primaryAddressDelete | bool | Determines whether or not the address1 fields are blanked out. |
secondaryAddressDelete | bool | Determines whether or not the address2 fields are blanked out. |
return | void |
protected RemoveDeletedChildren ( string childEntityName, ICollection |
||
childEntityName | string | The name of the child entity to be deleted |
childEntities | ICollection |
An |
parentKey | Guid | The |
return | void |
protected RemoveDeletedChildren ( string childEntityName, ICollection |
||
childEntityName | string | The name of the child entity to be deleted |
childKeys | ICollection |
An |
parentKey | Guid | The |
return | void |
protected RemoveDeletedChildren ( string childEntityName, ICollection |
||
childEntityName | string | The name of the child entity to be deleted |
childKeys | ICollection |
An |
compAttribute | string | The attribute to use when determining if a child in the collection has been deleted or not |
parentKey | Guid | The |
parentAttributeName | string | The name of the parent entities key attribute |
return | void |
protected RetrieveEntityAsDictionary ( Entity target ) : object>.Dictionary |
||
target | Entity | A |
return | object>.Dictionary |
protected SetLookupType ( FieldDefinition field, Xrm.Sdk.EntityReference returnedLookup ) : void | ||
field | FieldDefinition | The field who's name will determine that type of the |
returnedLookup | Xrm.Sdk.EntityReference | The |
return | void |
protected SetState ( Entity entity ) : void | ||
entity | Entity | The |
return | void |
protected UpdateCompoundEntity ( Entity entity, Entity children ) : void | ||
entity | Entity | The |
children | Entity | The |
return | void |
protected UpdateEntity ( Entity entity ) : void | ||
entity | Entity | The |
return | void |
protected WriteParentEntity ( object value ) : void | ||
value | object | The object to be written. |
return | void |
protected WriteParentEntity ( object value, string queryProperty, ICriterion criterion ) : void | ||
value | object | The |
queryProperty | string | The property to be queried to discover if this is a new instance or an existing one. |
criterion | ICriterion | The |
return | void |