// 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 <CrudeFerryIdentifierTypeRefModel> FetchWithFilter(string ferryIdentifierTypeRcd, string ferryIdentifierTypeName, string stateRcd, System.Guid userId, System.DateTime dateTime)
        {
            var list = new List <CrudeFerryIdentifierTypeRefModel>();
            List <CrudeFerryIdentifierTypeRefData> dataList = CrudeFerryIdentifierTypeRefData.FetchWithFilter(ferryIdentifierTypeRcd, ferryIdentifierTypeName, stateRcd, userId, dateTime);

            foreach (CrudeFerryIdentifierTypeRefData data in dataList)
            {
                var crudeFerryIdentifierTypeRefBusinessModel = new CrudeFerryIdentifierTypeRefModel();
                DataToModel(data, crudeFerryIdentifierTypeRefBusinessModel);
                list.Add(crudeFerryIdentifierTypeRefBusinessModel);
            }

            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 <CrudeFerryIdentifierTypeRefContract> FetchWithFilter(string ferryIdentifierTypeRcd, string ferryIdentifierTypeName, string stateRcd, System.Guid userId, System.DateTime dateTime)
        {
            var list = new List <CrudeFerryIdentifierTypeRefContract>();
            List <CrudeFerryIdentifierTypeRefData> dataList = CrudeFerryIdentifierTypeRefData.FetchWithFilter(
                ferryIdentifierTypeRcd: ferryIdentifierTypeRcd,
                ferryIdentifierTypeName: ferryIdentifierTypeName,
                stateRcd: stateRcd,
                userId: userId,
                dateTime: dateTime
                );

            foreach (CrudeFerryIdentifierTypeRefData data in dataList)
            {
                var crudeFerryIdentifierTypeRefContract = new CrudeFerryIdentifierTypeRefContract();
                DataToContract(data, crudeFerryIdentifierTypeRefContract);
                list.Add(crudeFerryIdentifierTypeRefContract);
            }

            return(list);
        }