/// <summary> /// ��ȡIP����ɾ����¼ /// </summary> /// <param name="iPCID">��ȡIP���ñ��</param> /// <param name="where">��ʱ����������ͳһ��ǰ��Ҫ�����ӷ���and��or�ȵȣ�</param> /// <param name="delCache">ɾ���ɹ��������CACHE key��֧������</param> /// <param name="dbkey">�������ݿ����ӳ��е�����key��Ϊ��ʱʹ��ConnString����</param> /// <returns>ɾ���Ƿ�ɹ�</returns> public static bool DeleteByID(Int64? iPCID, string dbkey = "", Where where = null, string[] delCache = null) { if (iPCID.IsNull()) return false; int value = new SQL().Database(dbkey).Delete(IpSetting._) .Where(new Where() .AndP(IpSetting._IPCID, iPCID, Operator.Equal, true) ).Where(where).ToExec(); if (value != 1) return false; if (delCache.IsNull()) return true; Cache2.Remove("TH.Mailer.IpSettingCache_", delCache); return true; }