public IShipmentImageState Get(ShipmentImageId id, bool nullAllowed)
        {
            IShipmentImageState state = CurrentSession.Get <ShipmentImageState>(id);

            if (!nullAllowed && state == null)
            {
                state = new ShipmentImageState();
                (state as ShipmentImageState).ShipmentImageId = id;
            }
            if (ReadOnlyProxyGenerator != null && state != null)
            {
                return(ReadOnlyProxyGenerator.CreateProxy <IShipmentImageState>(state, new Type[] {  }, _readOnlyPropertyNames));
            }
            return(state);
        }
Exemple #2
0
        public virtual IShipmentImageState GetShipmentImage(string shipmentId, string sequenceId)
        {
            var entityId = new ShipmentImageId(shipmentId, sequenceId);

            return(CurrentSession.Get <ShipmentImageState>(entityId));
        }