コード例 #1
0
		public DeleteSelfAction(SchemaObjectBase item)
		{
			this.item = item;
			item.ClearRelativeData();
			this.parentRelations = item.CurrentParentRelations;
			this.containerRelations = SCMemberRelationAdapter.Instance.LoadByMemberID(item.ID).FilterByStatus(SchemaObjectStatusFilterTypes.Normal);
		}
コード例 #2
0
 public DeleteSelfAction(SchemaObjectBase item)
 {
     this.item = item;
     item.ClearRelativeData();
     this.parentRelations    = item.CurrentParentRelations;
     this.containerRelations = SCMemberRelationAdapter.Instance.LoadByMemberID(item.ID).FilterByStatus(SchemaObjectStatusFilterTypes.Normal);
 }
コード例 #3
0
        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());
            }
        }