<insert id="insOrderDetail" parameterClass="OrderDetail">
INSERT INTO OrderDetail
(OrderId,PId,Quantity,Price)
VALUES
(#OrderId#,#PId#,#Quantity#,#Price#)
</insert>
调用
public void InsertActivityConfigDetail(OrderDetail orderDetail)
{
if (orderDetail== null)
return;
//新增明细
_sqlMap.Insert("insOrderDetail", orderDetaill);
}