I am attempting to save a new entity recursively, after having added an item to its child collection.
The following:
BasketEntity basket = new BasketEntity();
BasketLineEntity line1 = basket.BasketLines.AddNew();
ProductEntity product = new ProductEntity(1024);
line1.ItemPrice = (decimal)product.Price;
line1.ItemSalesTax = 0;
line1.ItemUpgradePrice = 0;
line1.Product = product;
line1.Quantity = 1;
basket.Save(true);
Fails, it attempts to insert the basketline entity first and throws "SQlExceptionCannot insert the value NULL into column 'BasketID'"
The project uses the 19th feb release of the RTL.