public void Edit(dynamic data)
        {
            var wrappers = RequestWrapper.InstanceArray(1);
            wrappers[0].SetXml(@"
<settings>
    <table>sys_role</table>
    <where><c column='RoleCode' values='{_id}'></c></where>
</settings>");

            var service = new sys_roleService();
            var result = service.Edit(data, null, wrappers);
        }
Exemple #2
0
        public void Edit(dynamic data)
        {
            var wrappers = RequestWrapper.InstanceArray(1);

            wrappers[0].SetXml(@"
<settings>
    <table>sys_role</table>
    <where><c column='RoleCode' values='{_id}'></c></where>
</settings>");

            var service = new sys_roleService();
            var result  = service.Edit(data, null, wrappers);
        }
Exemple #3
0
        public void Edit(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>
        sys_role
    </table>
    <where>
        <field name='RoleCode' cp='equal' variable='_id'></field>
    </where>
</settings>");

            var service = new sys_roleService();
            var result  = service.Edit(null, listWrapper, data);
        }
        public void Edit(dynamic data)
        {
            var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@"
<settings>
    <table>
        sys_role
    </table>
    <where>
        <field name='RoleCode' cp='equal' variable='_id'></field>
    </where>
</settings>");

            var service = new sys_roleService();
            var result = service.Edit(null, listWrapper, data);
        }