示例#1
0
 public void Store(Cargo cargo)
 {
    using (var session = _documentStore.OpenSession())
    {
       session.Store(cargo);  
       session.SaveChanges();
    }
 }
示例#2
0
 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;
 }
示例#3
0
 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);
 partial void DeleteCargo(Cargo instance);
 partial void UpdateCargo(Cargo instance);
 partial void InsertCargo(Cargo instance);