public static IEnumerable <IGoodIdentificationTypeState> ToGoodIdentificationTypeStateCollection(IEnumerable <string> ids)
        {
            var states = new List <GoodIdentificationTypeState>();

            foreach (var id in ids)
            {
                var s = new GoodIdentificationTypeState();
                s.GoodIdentificationTypeId = id;
                states.Add(s);
            }
            return(states);
        }
        public IGoodIdentificationTypeState Get(string id, bool nullAllowed)
        {
            IGoodIdentificationTypeState state = CurrentSession.Get <GoodIdentificationTypeState> (id);

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