public void AddFrameworkCategories(params Guid[] categoryIDs) { foreach (var id in categoryIDs) { FrameworkCategories.Add(new Metric_DataQualityFrameworkCategory { Metric = this, DataQualityFrameworkCategoryID = id }); } }
public void AddFrameworkCategories(params DataQualityFrameworkCategory[] categories) { foreach (var category in categories) { FrameworkCategories.Add(new Metric_DataQualityFrameworkCategory { Metric = this, DataQualityFrameworkCategory = category, DataQualityFrameworkCategoryID = category.ID }); } }