///<summary></summary> public static void SetDeleted(DeletedObjectType objType, long objectNum) { DeletedObject delObj = new DeletedObject(); delObj.ObjectNum = objectNum; delObj.ObjectType = objType; Crud.DeletedObjectCrud.Insert(delObj); }
///<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); }
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); }
///<summary></summary> public static void SetDeleted(DeletedObjectType objType,long objectNum){ DeletedObject delObj=new DeletedObject(); delObj.ObjectNum=objectNum; delObj.ObjectType=objType; Crud.DeletedObjectCrud.Insert(delObj); }