Ejemplo n.º 1
0
        /// <summary>
        ///更新记录
        /// </summary>
        /// <param name="UserDay"></param>
        /// <returns></returns>
        public bool GetUpdate(M_UserDay model)
        {
            string sqlStr = "UPDATE [dbo].[ZL_UserDay] SET [D_name] = @D_name,[D_date] = @D_date,[D_Content] = @D_Content,[D_UserID] = @D_UserID,[D_mail] = @D_mail,[D_mobile] = @D_mobile,[D_SendNum] = @D_SendNum WHERE [id] = @id";

            SqlParameter[] cmdParams = model.GetParameters();
            return(SqlHelper.ExecuteSql(sqlStr, cmdParams));
        }
Ejemplo n.º 2
0
 /// <summary>
 ///添加记录
 /// </summary>
 /// <param name="UserDay"></param>
 /// <returns></returns>
 public int GetInsert(M_UserDay model)
 {
     return(Sql.insert(strTableName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }