Example #1
0
        public ProductSearchByIdContract ProductSearchByIdFromDal(ProductSearchByIdData data)
        {
            var contract = new ProductSearchByIdContract();

            DataToContract(data, contract);

            return(contract);
        }
Example #2
0
 // transfer serialized data contract to business wcf contract
 // links:
 //  docLink: http://sql2x.org/documentationLink/6140089a-d7c9-4e92-b385-f6fd91026820
 // parameters:
 //  dalProductSearchById: from durian ansi sql select statement
 //  dataContract: business wcf contract
 public void DataToContract(ProductSearchByIdData dalProductSearchById, ProductSearchByIdContract dataContract)
 {
     dataContract.ProductName          = dalProductSearchById.ProductName;
     dataContract.Identifier           = dalProductSearchById.Identifier;
     dataContract.Value                = dalProductSearchById.Value;
     dataContract.ProductInfoValue     = dalProductSearchById.ProductInfoValue;
     dataContract.ProductImageTypeRcd  = dalProductSearchById.ProductImageTypeRcd;
     dataContract.ProductImageTypeName = dalProductSearchById.ProductImageTypeName;
     dataContract.Image                = dalProductSearchById.Image;
 }