Ejemplo n.º 1
0
        public static IEnumerable <IPicklistRoleMvoState> ToPicklistRoleMvoStateCollection(IEnumerable <PicklistRoleId> ids)
        {
            var states = new List <PicklistRoleMvoState>();

            foreach (var id in ids)
            {
                var s = new PicklistRoleMvoState();
                s.PicklistRoleId = id;
                states.Add(s);
            }
            return(states);
        }
Ejemplo n.º 2
0
        public IPicklistRoleMvoState Get(PicklistRoleId id, bool nullAllowed)
        {
            IPicklistRoleMvoState state = CurrentSession.Get <PicklistRoleMvoState> (id);

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