In the select linq query need add where condition for two columns. Column name1: Address and column name: city If two column values are means condition go to if(address!=null){}otherwise else{} I used below query not work. AddressInfo address = AddressInfoProvider.GetAddresses() .WhereEquals("AddressLine", customerID) .And() .WhereEquals("AddressLine2", customerID); if (address != null) {} else{ }
AddressInfo address = AddressInfoProvider.GetAddresses() .WhereEquals("AddressLine", user.addressline1) .And() .WhereEquals("AddressLine2", user.addressline2);
Its working fine
Please, sign in to be able to submit a new answer.