Ejemplo n.º 1
0
        public IUserLoginMvoState Get(UserLoginId id)
        {
            IUserLoginMvoState state = CurrentSession.Get <UserLoginMvoState> (id);

            if (state == null)
            {
                state = new UserLoginMvoState();
                (state as UserLoginMvoState).UserLoginId = id;
            }
            return(state);
        }
        public IUserLoginMvoState Get(UserLoginId id, bool nullAllowed)
        {
            IUserLoginMvoState state = CurrentSession.Get <UserLoginMvoState> (id);

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