// 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 <CrudeServiceSpecialServiceRequestGroupRefModel> FetchWithFilter(string serviceSpecialServiceRequestGroupRcd, string serviceSpecialServiceRequestGroupName, System.Guid userId, System.DateTime dateTime)
        {
            var list = new List <CrudeServiceSpecialServiceRequestGroupRefModel>();
            List <CrudeServiceSpecialServiceRequestGroupRefData> dataList = CrudeServiceSpecialServiceRequestGroupRefData.FetchWithFilter(serviceSpecialServiceRequestGroupRcd, serviceSpecialServiceRequestGroupName, userId, dateTime);

            foreach (CrudeServiceSpecialServiceRequestGroupRefData data in dataList)
            {
                var crudeServiceSpecialServiceRequestGroupRefBusinessModel = new CrudeServiceSpecialServiceRequestGroupRefModel();
                DataToModel(data, crudeServiceSpecialServiceRequestGroupRefBusinessModel);
                list.Add(crudeServiceSpecialServiceRequestGroupRefBusinessModel);
            }

            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 <CrudeServiceSpecialServiceRequestGroupRefContract> FetchWithFilter(string serviceSpecialServiceRequestGroupRcd, string serviceSpecialServiceRequestGroupName, System.Guid userId, System.DateTime dateTime)
        {
            var list = new List <CrudeServiceSpecialServiceRequestGroupRefContract>();
            List <CrudeServiceSpecialServiceRequestGroupRefData> dataList = CrudeServiceSpecialServiceRequestGroupRefData.FetchWithFilter(
                serviceSpecialServiceRequestGroupRcd: serviceSpecialServiceRequestGroupRcd,
                serviceSpecialServiceRequestGroupName: serviceSpecialServiceRequestGroupName,
                userId: userId,
                dateTime: dateTime
                );

            foreach (CrudeServiceSpecialServiceRequestGroupRefData data in dataList)
            {
                var crudeServiceSpecialServiceRequestGroupRefContract = new CrudeServiceSpecialServiceRequestGroupRefContract();
                DataToContract(data, crudeServiceSpecialServiceRequestGroupRefContract);
                list.Add(crudeServiceSpecialServiceRequestGroupRefContract);
            }

            return(list);
        }