Exemple #1
0
        public int GetRelatedValues(long source, List <ModelCode> propIds, Association association)
        {
            try
            {
                ResourceIterator ri = nm.GetRelatedValues(source, propIds, association);
                int retVal          = AddIterator(ri);

                return(retVal);
            }
            catch (Exception ex)
            {
                string message = string.Format("Getting related values for resource with ID = 0x{0:x16} failed. {1}", source, ex.Message);
                CommonTrace.WriteTrace(CommonTrace.TraceError, message);
                throw new Exception(message);
            }
        }
 /// <summary>
 /// Gets resource iterator that holds descriptions for all entities related to specified source.
 /// </summary>
 /// <param name="contextId">Context Id</param>
 /// <param name="properties">List of requested properties</param>
 /// <param name="association">Relation between source and entities that should be returned</param>
 /// <param name="source">Id of entity that is start for association search</param>
 /// <param name="typeOfQuery">Query type choice(global or local)</param>
 /// <returns>Resource iterator for the requested entities</returns>
 public ResourceIterator GetRelatedValues(long source, List <ModelCode> properties, Association association)
 {
     return(networkModel.GetRelatedValues(source, properties, association));
 }