示例#1
0
        /// <summary>
        /// 创建当前的sql
        /// </summary>
        /// <returns></returns>
        public string CreateSql()
        {
            UpdateAction update = new UpdateAction(Entity);

            update.Cast <cms_user>()
            .Where(u => u.username == "wangjun")
            .UnCast()
            .SqlKeyValue(cms_user.Columns.password, "1234567");
            return(update.CreateSql(OperateEnum.Update));
        }