var xmlfromLinq = new XElement("root", from c in xyzEntity select new XElement("row", new XElement("StoreNumber", c.StoreNumber), new XElement("Qty", c.Qty)));
var p = new DynamicParameters();
p.Add("@tblXmlData", xmlfromLinq);
p.Add("@ID", id);
var result = cmd.Connection.Execute(storeProcedure, p, cmd.Transaction, commandType: CommandType.StoredProcedure);
异常: - System.Xml.Linq.XElement类型的成员tblXmlData不能用作参数值。
答案 0 :(得分:0)
将参数转换为字符串值:
Combobox.addValueChangeListener(new ValueChangeListener()
@Override
public void valueChange(ValueChangeEvent event) {
// below line works only first time when the combobox is clicked,but i want
//it when the item in the combobox is changed
gridContainer.getContainerProperty(editedRow,"editedColumProperty").setValue("ValueTobeUpdated");}
});