コード例 #1
0
        ///<summary></summary>
        public static void SetDeleted(DeletedObjectType objType, long objectNum)
        {
            DeletedObject delObj = new DeletedObject();

            delObj.ObjectNum  = objectNum;
            delObj.ObjectType = objType;
            Crud.DeletedObjectCrud.Insert(delObj);
        }
コード例 #2
0
        ///<summary></summary>
        public static void SetDeleted(DeletedObjectType objType, long objectNum)
        {
            if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
            {
                Meth.GetVoid(MethodBase.GetCurrentMethod(), objType, objectNum);
                return;
            }
            DeletedObject delObj = new DeletedObject();

            delObj.ObjectNum  = objectNum;
            delObj.ObjectType = objType;
            Crud.DeletedObjectCrud.Insert(delObj);
        }
コード例 #3
0
        public static void SetDeleted(DeletedObjectType objType, List <long> listObjectNums)
        {
            if (listObjectNums.Count == 0)
            {
                return;
            }
            if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
            {
                Meth.GetVoid(MethodBase.GetCurrentMethod(), objType, listObjectNums);
                return;
            }
            List <DeletedObject> listObjects = listObjectNums.Select(x => new DeletedObject {
                ObjectNum = x, ObjectType = objType
            }).ToList();

            Crud.DeletedObjectCrud.InsertMany(listObjects);
        }
コード例 #4
0
		///<summary></summary>
		public static void SetDeleted(DeletedObjectType objType,long objectNum){
			DeletedObject delObj=new DeletedObject();
			delObj.ObjectNum=objectNum;
			delObj.ObjectType=objType;
			Crud.DeletedObjectCrud.Insert(delObj);
		}