/// <summary>
 /// Adds the assumed entity.
 /// </summary>
 /// <param name="service">The service.</param>
 /// <param name="assumption">The assumption.</param>
 protected void AddAssumedEntity(IOrganizationService service, EntityDataAssumptionBaseAttribute assumption)
 {
     assumption.AddAssumedEntitiesWithPreReqInfiniteLoopPrevention(service, _assumedEntities, _currentlyProcessingPreReqs);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the specified assumption Type and Entity.
 /// </summary>
 /// <param name="attribute">The attribute.</param>
 /// <param name="entity">The entity.</param>
 /// <returns></returns>
 public bool Add(EntityDataAssumptionBaseAttribute attribute, Entity entity)
 {
     return(Add(GetKey(attribute), entity));
 }
Exemplo n.º 3
0
 private static string GetKey(EntityDataAssumptionBaseAttribute assumption)
 {
     return(assumption.GetType().AssemblyQualifiedName);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Determines whether the assumption type is contained.
 /// </summary>
 /// <param name="assumption">The assumption.</param>
 /// <returns></returns>
 public bool Contains(EntityDataAssumptionBaseAttribute assumption)
 {
     return(InternalStore.ContainsKey(GetKey(assumption)));
 }