public IShipmentReceiptImageState Get(ShipmentReceiptImageId id, bool nullAllowed)
        {
            IShipmentReceiptImageState state = CurrentSession.Get <ShipmentReceiptImageState>(id);

            if (!nullAllowed && state == null)
            {
                state = new ShipmentReceiptImageState();
                (state as ShipmentReceiptImageState).ShipmentReceiptImageId = id;
            }
            if (ReadOnlyProxyGenerator != null && state != null)
            {
                return(ReadOnlyProxyGenerator.CreateProxy <IShipmentReceiptImageState>(state, new Type[] {  }, _readOnlyPropertyNames));
            }
            return(state);
        }
Ejemplo n.º 2
0
        public virtual IShipmentReceiptImageState GetShipmentReceiptImage(string shipmentId, string shipmentReceiptReceiptSeqId, string sequenceId)
        {
            var entityId = new ShipmentReceiptImageId(shipmentId, shipmentReceiptReceiptSeqId, sequenceId);

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