Exemplo n.º 1
0
        /// <summary>
        /// 获取更新语句
        /// </summary>
        /// <param name="filter">将参数化映射到标签中类的主键或其他字段上</param>
        /// <returns></returns>
        public string UpdateString(MemberInfo[] members, Func <MemberInfo, string> filter = null)
        {
            var model = _model.CopyInstance();

            model.FilterFunction = filter;
            MemberInfo[] temp = new MemberInfo[members.Length - 1];
            Array.Copy(members, 1, temp, 0, members.Length - 1);
            model.LoadMembers(members[0]);
            return(_update_template.UpdateWithCondition(model, temp));
        }