protected override void OnSetUp() { using (var s = OpenSession()) using (var t = s.BeginTransaction()) { var trip = new Trip(); trip.Header = "Header1"; var tp1 = trip.CreateTrackpoint(); tp1.Lat = 1; tp1.Lon = 1; var tp2 = trip.CreateTrackpoint(); tp2.Lat = 2; tp2.Lon = 2; var tp3 = trip.CreateTrackpoint(); tp3.Lat = 3; tp3.Lon = 3; s.Save(trip); t.Commit(); } }
public Trackpoint(Trip trip) : this() { Trip = trip; }