Пример #1
0
 /// <summary>
 /// Gets all <see cref="IDataType"/> objects or those with the ids passed in
 /// </summary>
 /// <param name="ids">Optional array of Ids</param>
 /// <returns>An enumerable list of <see cref="IDataType"/> objects</returns>
 public IEnumerable <IDataType> GetAll(params int[] ids)
 {
     using (var scope = ScopeProvider.CreateScope(autoComplete: true))
     {
         return(_dataTypeRepository.GetMany(ids));
     }
 }
Пример #2
0
        /// <summary>
        /// Gets all <see cref="IDataType"/> objects or those with the ids passed in
        /// </summary>
        /// <param name="ids">Optional array of Ids</param>
        /// <returns>An enumerable list of <see cref="IDataType"/> objects</returns>
        public IEnumerable <IDataType> GetAll(params int[] ids)
        {
            using ICoreScope scope = ScopeProvider.CreateCoreScope(autoComplete: true);
            IEnumerable <IDataType> dataTypes = _dataTypeRepository.GetMany(ids).ToArray();

            ConvertMissingEditorsOfDataTypesToLabels(dataTypes);
            return(dataTypes);
        }