Hi,
I am really confused as I consider myself an advanced LLBL user and this is really fundamental thing.
I tried this code
new FlightEntity().FlightSegment
FlightSegment is related table to FlightEntity (so it is of type FlightSegmentCollection).
I would suspect, that this will not go to database for any data (why should it? since new FlightEntity().IsNew == true?). But if I debug database output I can see sql query
Query: SELECT ... WHERE ( ( ...[FlightSegment].[IdFlight] = @IdFlight1))
Parameter: @IdFlight1 : Int32. Length: 0. Precision: 10. Scale: 0. Direction: Input. Value: 0.
I could set (although private) AlreadyFetchetFlight property, but is this a solution?
Maybe I have something wrong in my project (as it is really old) but I can't see any reason for this.
LLBL version: 2.5.7.1219
DB: MS SQL 2005