How to insert objects from a List into a dataTable in sql server using linq to sql : i'm new in programming and i'm trying to insert a list of objects using linq to sql and only the last object from the list gets inserted into the dataBase. Can someone help me find the problem?
This is my code:

   //this is the code in the orderDetailRepository class
   public List<OrderDetail> CreateOrderDetailRecords(List<OrderDetail> details)
       {

           FruitStoreDataContext db = new FruitStoreDataContext();
           db.OrderDetails.InsertAllOnSubmit(details);
           db.SubmitChanges();
           return details;
       }

       //this is the code in the Form.cs file when i press the "finish button"
        private void FinishButton_Click(object sender, EventArgs e)
        {
            OrderDetailRepository orderDetailRepo = new OrderDetailRepository();
            orderDetailRepo.CreateOrderDetailRecords(Ord);
            //Ord is the name of the list of OrderDetail Objects that i created...
            TotalCostLabel.Visible = true;
            TotalCostLabel.Text = "$" + totalCost;
        }
