LLBLGen 2, Sql2000, ASP.NET 2
I'm sorry if this question has been asked a lot but I can't find it. Lets say I have two tables; Order and Customer, which are related on Order.CustomerId to Customer.CustomerId. I want to make an insert into these tables in one call like such:
OrderEntity o = new OrderEntity();
o.Fname = "someones"; // Customer
o.Lname = "name"; // Customer
o.Qty = 2; // Order
o.Save();
I was thinking that by mapping all the Customer fields onto Order in the Orders FieldsOnRelatedFields in the LLBL designer that this would work. However I haven't been successful yet. Does this in fact work and I'm doing it wrong, or is there some different way to do this type of thing?
I've played with it a few ways and I either get this error:
Cannot insert the value NULL into column 'CustomerId'
Or it says the column Fname is null and can't be inserted.
thanks for any help and direction!
Brent