Пример #1
0
		///<summary></summary>
		public static void Update(ZipCode Cur){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Meth.GetVoid(MethodBase.GetCurrentMethod(),Cur);
				return;
			}
			Crud.ZipCodeCrud.Update(Cur);
		}
Пример #2
0
		///<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);
		}
Пример #3
0
		///<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);
		}