コード例 #1
0
ファイル: BLL_Service.cs プロジェクト: toolandhelp/Equipment
 public bool PhysicalDelete(int[] eIds, int iCode)
 {
     if (iCode == 0)
     {
         return(dbContext.PhysicalDeleteByCondition(c => eIds.Contains(c.ID)));
     }
     else
     {
         var service = new DbHelperEfSql <td_Service_2>();
         return(service.PhysicalDeleteByCondition(c => eIds.Contains(c.ID)));
     }
 }
コード例 #2
0
        public bool PhysicalDeleteByCondition(Guid id)
        {
            var szServices = new DbHelperEfSql <tbOrganization>();

            return(szServices.PhysicalDeleteByCondition(c => c.ID == id));
        }
コード例 #3
0
        public bool PhysicalDeleteByCondition(string[] ids)
        {
            var szServices = new DbHelperEfSql <tbOrganization>();

            return(szServices.PhysicalDeleteByCondition(c => ids.Contains(c.ID.ToString())));
        }
コード例 #4
0
        public bool PhyDelete(Guid id, int pid, int tableType)
        {
            var szServices = new DbHelperEfSql <Attachments>();

            return(szServices.PhysicalDeleteByCondition(c => c.AttachmentID == id && c.ParentID == pid && c.TableType == tableType));
        }
コード例 #5
0
        public bool PhyDelete(Guid id)
        {
            var szServices = new DbHelperEfSql <Attachments>();

            return(szServices.PhysicalDeleteByCondition(c => c.AttachmentID == id));
        }
コード例 #6
0
        public bool PhysicalDeleteByUserIDs(Guid id)
        {
            var szServices = new DbHelperEfSql <AuthNodeButton>();

            return(szServices.PhysicalDeleteByCondition(c => c.UserID == id));
        }
コード例 #7
0
        public bool PhysicalDeleteByUserIDs(string[] ids)
        {
            var szServices = new DbHelperEfSql <AuthNodeButton>();

            return(szServices.PhysicalDeleteByCondition(c => ids.Contains(c.UserID.ToString())));
        }
コード例 #8
0
ファイル: BLL_Network.cs プロジェクト: toolandhelp/Equipment
        /// <summary>
        /// 1
        /// </summary>
        /// <param name="eIds"></param>
        /// <returns></returns>
        public bool PhysicalDelete1(int[] eIds)
        {
            var service = new DbHelperEfSql <td_Network_1>();

            return(service.PhysicalDeleteByCondition(c => eIds.Contains(c.ID)));
        }
コード例 #9
0
        public bool PhysicalDeleteByCondition(string[] ids)
        {
            var szServices = new DbHelperEfSql <Nodes>();

            return(szServices.PhysicalDeleteByCondition(c => ids.Contains(c.NodeId.ToString())));
        }
コード例 #10
0
        public bool PhysicalDeleteByCondition(Guid id)
        {
            var szServices = new DbHelperEfSql <Depts>();

            return(szServices.PhysicalDeleteByCondition(c => c.DeptID == id));
        }