///<summary></summary> public static void Update(ZipCode Cur){ if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(),Cur); return; } Crud.ZipCodeCrud.Update(Cur); }
///<summary></summary> public static long Insert(ZipCode Cur){ if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) { Cur.ZipCodeNum=Meth.GetLong(MethodBase.GetCurrentMethod(),Cur); return Cur.ZipCodeNum; } return Crud.ZipCodeCrud.Insert(Cur); }
///<summary></summary> public static void Delete(ZipCode Cur){ if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(),Cur); return; } string command = "DELETE from zipcode WHERE zipcodenum = '"+POut.Long(Cur.ZipCodeNum)+"'"; Db.NonQ(command); }