public DeleteSelfAction(SchemaObjectBase item) { this.item = item; item.ClearRelativeData(); this.parentRelations = item.CurrentParentRelations; this.containerRelations = SCMemberRelationAdapter.Instance.LoadByMemberID(item.ID).FilterByStatus(SchemaObjectStatusFilterTypes.Normal); }
public DeleteSelfAction(SchemaObjectBase item) { this.item = item; item.ClearRelativeData(); this.parentRelations = item.CurrentParentRelations; this.containerRelations = SCMemberRelationAdapter.Instance.LoadByMemberID(item.ID).FilterByStatus(SchemaObjectStatusFilterTypes.Normal); }
public SchemaObjectCollection GetCurrentObjects() { SCMemberRelationCollectionBase members = null; AUCommon.DoDbAction(() => { members = PC.Adapters.SCMemberRelationAdapter.Instance.LoadByContainerID(this.ID, this.ScopeSchemaType).FilterByStatus(SchemaObjectStatusFilterTypes.Normal); }); if (members.Count > 0) { return(Adapters.AUSnapshotAdapter.Instance.LoadScopeItems(members.ToIDArray(), this.ScopeSchemaType, true, DateTime.MinValue)); } else { return(new SchemaObjectCollection()); } }