/// <summary> /// Поиск неиспользуемых объектов коллекции. /// </summary> public XPCollectionContainer FindUnuseCollections(DBInterfaceItemBases itemsSeq, object collectionExept) { XPCollectionContainer unuses = new XPCollectionContainer(); foreach (XPCollection collection in this) { if (collection != collectionExept) { if (collection.ObjectType == null) { unuses.Add(collection); } if (!IsUsedXPCollection(itemsSeq, collection.ObjectType)) { unuses.Add(collection); } } } return(unuses); }
public XPCollectionWithUnit(Type type) { Collection = new XPCollection(); UnitOfWork = new UnitOfWork(); XPCollectionContainer.InitXPCollection(Collection, type, UnitOfWork); }