BExIS.Dcm.CreateDatasetWizard.UsageHelper.GetMetadataCompoundAttributeUsageById C# (CSharp) Метод

GetMetadataCompoundAttributeUsageById() публичный статический Метод

public static GetMetadataCompoundAttributeUsageById ( long Id ) : BaseUsage
Id long
Результат BaseUsage
        public static BaseUsage GetMetadataCompoundAttributeUsageById(long Id)
        {
            BaseUsage usage = new BaseUsage();

            MetadataAttributeManager mam = new MetadataAttributeManager();

            var x = from c in mam.MetadataCompoundAttributeRepo.Get()
                    from u in c.Self.MetadataNestedAttributeUsages
                    where u.Id == Id //&& c.Id.Equals(parentId)
                    select u;

            return x.FirstOrDefault();
        }