我们计划在下面进行深度插入是它的代码。它不工作有人可以帮助我。
Order orderObj = new Order
OrderDetail oDetailObj = new OrderDetail
context.AttachTo(Orders, orderObj);
Code to set properties of orderObj
for loop to add orders details
{
Code to set properties of oDetailObj
context.AddRelatedObject(orderObj, "OrderDetailsList", oDetailObj);
}