예제 #1
0
        /// <summary>
        /// Returns section required entities unique identifiers list.
        /// </summary>
        /// <param name="sectionMainEntity">Section main entity <see cref="ISchemaManagerItem"/> instance.</param>
        /// <returns>Section required entities unique identifiers list.</returns>
        private IEnumerable <Guid> GetSectionRequiredEntityIds(ISchemaManagerItem sectionMainEntity)
        {
            var result = new List <Guid>();

            result.AddIfNotExists(sectionMainEntity.UId);
            foreach (var entityNameSuffix in _sectionRelatedEntitySufixes)
            {
                AddUIdIfNotNull(result, EntitySchemaManager.FindItemByName(sectionMainEntity.Name + entityNameSuffix));
            }
            return(result);
        }