public void Store(Cargo cargo) { using (var session = _documentStore.OpenSession()) { session.Store(cargo); session.SaveChanges(); } }
public Delivery(Cargo parent, HandlingActivity nextExpectedActivity, HandlingActivity lastKnownActivity, RoutingStatus routingStatus, TransportStatus transportStatus, DateTime? estimatedTimeOfArrival, bool isUnloadedAtDestination, bool isMisdirected, DateTime calculatedAt) { Parent = parent; NextExpectedActivity = nextExpectedActivity; LastKnownActivity = lastKnownActivity; RoutingStatus = routingStatus; TransportStatus = transportStatus; EstimatedTimeOfArrival = estimatedTimeOfArrival; IsUnloadedAtDestination = isUnloadedAtDestination; IsMisdirected = isMisdirected; CalculatedAt = calculatedAt; }
public Delivery(Cargo parent, HandlingEventType? nextExpectedEvent, string nextExpectedLocation, HandlingEventType? lastKnownEvent, string lastKnownLocation, RoutingStatus routingStatus, TransportStatus transportStatus, DateTime? estimatedTimeOfArrival, bool isUnloadedAtDestination, bool isMisdirected, DateTime calculatedAt) : this() { Id = Guid.NewGuid(); Cargo = parent; NextExpectedEventType = nextExpectedEvent; NextExpectedLocation = nextExpectedLocation; LastKnownEventType = lastKnownEvent; LastKnownLocation = lastKnownLocation; RoutingStatus = routingStatus; TransportStatus = transportStatus; Eta = estimatedTimeOfArrival; UnloadedAtDest = isUnloadedAtDestination; IsMisdirected = isMisdirected; CalculatedAt = calculatedAt; }
public CargoTrackingViewAdapter(Cargo cargo) { _cargo = cargo; }
partial void DeleteCargo(Cargo instance);
partial void UpdateCargo(Cargo instance);
partial void InsertCargo(Cargo instance);