Пример #1
0
        private void FillProperties()
        {
            var Repo = new LocationTypePropertyRepository(Repositories.ThisDb, Helper.ThisCache);

            foreach (var LocType in CurrentCollection)
            {
                LocType.Properties = Repo.GetByLocationType(LocType.Key).ToList();
            }
        }
Пример #2
0
        private void DeleteProperties(LocationType item)
        {
            var Repo          = new LocationTypePropertyRepository(Repositories.ThisDb, Helper.ThisCache);
            var MatchingProps = Repo.GetByLocationType(item.Key);

            foreach (var Prop in MatchingProps)
            {
                Repo.Delete(Prop);
            }
        }