public IInOutLineImageState Get(InOutLineImageId id, bool nullAllowed) { IInOutLineImageState state = CurrentSession.Get <InOutLineImageState>(id); if (!nullAllowed && state == null) { state = new InOutLineImageState(); (state as InOutLineImageState).InOutLineImageId = id; } if (ReadOnlyProxyGenerator != null && state != null) { return(ReadOnlyProxyGenerator.CreateProxy <IInOutLineImageState>(state, new Type[] { }, _readOnlyPropertyNames)); } return(state); }
public virtual IInOutLineImageState GetInOutLineImage(string inOutDocumentNumber, string inOutLineLineNumber, string sequenceId) { var entityId = new InOutLineImageId(inOutDocumentNumber, inOutLineLineNumber, sequenceId); return(CurrentSession.Get <InOutLineImageState>(entityId)); }