Kentico Upgrade 10 to 11 version API Issues.

Tiger R asked on September 27, 2019 12:10

I upgrade thesite kentico 10 to 11 version, I faced the issues for get the Address list using below code.

Kentico 10 code:

AddressInfo address = AddressInfoProvider.GetAddresses() .WhereEquals("AddressLine1", userDto.AddressLine) .And() .WhereEquals("AddressCity", userDto.City);

Recent Answers


Brenden Kehren answered on September 27, 2019 13:28

What issues are you having? You need to be more specific.

0 votesVote for this answer Mark as a Correct answer

Tiger R answered on September 27, 2019 13:59

In Kentico 11 "AddressInfoProvider" was removed instead of what we need to use

I am geeting below error message.

'ObjectQueryBase<ObjectQuery

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on September 27, 2019 15:06

Hi Tiger,

A few notes:

  1. Refer to API changes doc - there you can simply find if something was moved/deleted.
  2. But AddressInfoProvider.GetAddresses() was not removed, it's still there. Even in Kentico 12 it's all fine.

Do you add anything else into your query? Does this query work fine and return all the addresses? AddressInfo address = AddressInfoProvider.GetAddresses().ToList();

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.