// fetch all from table into new List of class instances, filtered by any column
        // links:
        //  docLink: http://sql2x.org/documentationLink/db27658d-4d23-46d7-9970-7bbaef8634b0
        public List <CrudeFlightScheduleIdentifierModel> FetchWithFilter(System.Guid flightScheduleIdentifierId, System.Guid flightScheduleId, string flightIdentifierTypeRcd, string flightIdentifierCode, System.Guid userId, System.DateTime dateTime)
        {
            var list = new List <CrudeFlightScheduleIdentifierModel>();
            List <CrudeFlightScheduleIdentifierData> dataList = CrudeFlightScheduleIdentifierData.FetchWithFilter(flightScheduleIdentifierId, flightScheduleId, flightIdentifierTypeRcd, flightIdentifierCode, userId, dateTime);

            foreach (CrudeFlightScheduleIdentifierData data in dataList)
            {
                var crudeFlightScheduleIdentifierBusinessModel = new CrudeFlightScheduleIdentifierModel();
                DataToModel(data, crudeFlightScheduleIdentifierBusinessModel);
                list.Add(crudeFlightScheduleIdentifierBusinessModel);
            }

            return(list);
        }
        // fetch all rows from table into new List of Contracts, filtered by any column
        // links:
        //  docLink: http://sql2x.org/documentationLink/ce01ef4a-5cd0-4e51-b211-9c0a15b791a0
        public List <CrudeFlightScheduleIdentifierContract> FetchWithFilter(System.Guid flightScheduleIdentifierId, System.Guid flightScheduleId, string flightIdentifierTypeRcd, string flightIdentifierCode, System.Guid userId, System.DateTime dateTime)
        {
            var list = new List <CrudeFlightScheduleIdentifierContract>();
            List <CrudeFlightScheduleIdentifierData> dataList = CrudeFlightScheduleIdentifierData.FetchWithFilter(
                flightScheduleIdentifierId: flightScheduleIdentifierId,
                flightScheduleId: flightScheduleId,
                flightIdentifierTypeRcd: flightIdentifierTypeRcd,
                flightIdentifierCode: flightIdentifierCode,
                userId: userId,
                dateTime: dateTime
                );

            foreach (CrudeFlightScheduleIdentifierData data in dataList)
            {
                var crudeFlightScheduleIdentifierContract = new CrudeFlightScheduleIdentifierContract();
                DataToContract(data, crudeFlightScheduleIdentifierContract);
                list.Add(crudeFlightScheduleIdentifierContract);
            }

            return(list);
        }