public static IEnumerable <IMovementConfirmationLineMvoState> ToMovementConfirmationLineMvoStateCollection(IEnumerable <MovementConfirmationLineId> ids)
        {
            var states = new List <MovementConfirmationLineMvoState>();

            foreach (var id in ids)
            {
                var s = new MovementConfirmationLineMvoState();
                s.MovementConfirmationLineId = id;
                states.Add(s);
            }
            return(states);
        }
        public IMovementConfirmationLineMvoState Get(MovementConfirmationLineId id, bool nullAllowed)
        {
            IMovementConfirmationLineMvoState state = CurrentSession.Get <MovementConfirmationLineMvoState> (id);

            if (!nullAllowed && state == null)
            {
                state = new MovementConfirmationLineMvoState();
                (state as MovementConfirmationLineMvoState).MovementConfirmationLineId = id;
            }
            if (ReadOnlyProxyGenerator != null && state != null)
            {
                return(ReadOnlyProxyGenerator.CreateProxy <IMovementConfirmationLineMvoState>(state, new Type[] {  }, _readOnlyPropertyNames));
            }
            return(state);
        }