/// <summary> /// 添加房源 /// </summary> /// <param name="h"></param> /// <returns></returns> public int AddHome(CP_Home h) { int i = DBHelper.ExecuteNonQuery($"insert into CP_Home values ('{h.H_Name}',{h.H_RentSale},{h.H_OneTwo},{h.P_Id},{h.S_Id},{h.SS_Id},{h.H_Room},{h.H_Offic},{h.H_Toilet},{h.H_Acreage},'{h.H_Decoration}',{h.H_Now},{h.H_Sum},{h.H_IsNot},{h.H_Stall},{h.H_Rent},{h.H_RentInfo},'{h.H_ShowingTime}','{h.H_SoonestTime}','{h.H_Describe}',{h.H_Stick},{h.H_Refresh},{h.H_SumPrice},'{h.H_Phone}','{h.H_Call}',{h.H_IsSell},{h.HH_Id},{h.U_Id})"); return(i); }
/// <summary> /// 添加房源 /// </summary> /// <param name="h"></param> /// <returns></returns> public int AddHome(CP_Home h) { return(dal.AddHome(h)); }