// 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 <CrudeClientLinkModel> FetchWithFilter(System.Guid clientLinkId, System.Guid clientId, string linkTypeRcd, string link, System.Guid userId, System.DateTime dateTime)
        {
            var list = new List <CrudeClientLinkModel>();
            List <CrudeClientLinkData> dataList = CrudeClientLinkData.FetchWithFilter(clientLinkId, clientId, linkTypeRcd, link, userId, dateTime);

            foreach (CrudeClientLinkData data in dataList)
            {
                var crudeClientLinkBusinessModel = new CrudeClientLinkModel();
                DataToModel(data, crudeClientLinkBusinessModel);
                list.Add(crudeClientLinkBusinessModel);
            }

            return(list);
        }
Example #2
0
        // 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 <CrudeClientLinkContract> FetchWithFilter(System.Guid clientLinkId, System.Guid clientId, string linkTypeRcd, string link, System.Guid userId, System.DateTime dateTime)
        {
            var list = new List <CrudeClientLinkContract>();
            List <CrudeClientLinkData> dataList = CrudeClientLinkData.FetchWithFilter(
                clientLinkId: clientLinkId,
                clientId: clientId,
                linkTypeRcd: linkTypeRcd,
                link: link,
                userId: userId,
                dateTime: dateTime
                );

            foreach (CrudeClientLinkData data in dataList)
            {
                var crudeClientLinkContract = new CrudeClientLinkContract();
                DataToContract(data, crudeClientLinkContract);
                list.Add(crudeClientLinkContract);
            }

            return(list);
        }