Class AccountInfoProvider
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
Class providing AccountInfo management.
[ProviderInterface(typeof(IAccountInfoProvider))]
[Obsolete("Use CMS.DataEngine.IInfoProvider<AccountInfo> instead. Use CMS.DataEngine.InfoProviderExtensions for additional methods for individual objects retrieval. To get an instance of the interface's implementation use dependency injection or access the instance directly via the CMS.DataEngine.Provider<AccountInfo>.Instance property. When faking metadata in CMS.Tests.UnitTests using Fake() use the obsolete provider class until fully removed.")]
public class AccountInfoProvider : AbstractInfoProvider<AccountInfo, AccountInfoProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<AccountInfo>, IInfoByNameProvider<AccountInfo>, IBulkInfoProvider<AccountInfo>, IAccountInfoProvider, IInfoProvider<AccountInfo>, IInfoByIdProvider<AccountInfo>, IInfoByGuidProvider<AccountInfo>
- Inheritance
-
objectAccountInfoProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
AccountInfoProvider()
Constructor which sets weak references for ID caching.
public AccountInfoProvider()
Methods
DeleteAccountInfos(string, bool)
Deletes accounts by specified WHERE condition.
[Obsolete("Method is no longer used by the system and will be removed.")]
public static void DeleteAccountInfos(string where, bool deleteSubsidiaries)
Parameters
wherestringSQL WHERE condition
deleteSubsidiariesboolDelete subsidiaries
DeleteAccountInfosInternal(string, bool)
Deletes accounts by WHERE condition
[Obsolete("Method is no longer used by the system and will be removed.")]
protected virtual void DeleteAccountInfosInternal(string where, bool deleteSubsidiaries)
Parameters
wherestringSQL WHERE condition to specify deleted accounts
deleteSubsidiariesboolIndicates if subsidiaries should be deleted
UpdateAccountPrimaryContact(int, int)
Updates primary and secondary contact of all accounts.
[Obsolete("Method is no longer used by the system and will be removed.")]
public static void UpdateAccountPrimaryContact(int oldContactID, int newContactID)
Parameters
oldContactIDintID of contact to be replaced
newContactIDintID of new contact to replace oldContact
UpdateAccountPrimaryContactInternal(int, int)
Updates primary and secondary contact of all accounts.
[Obsolete("Method is no longer used by the system and will be removed.")]
protected virtual void UpdateAccountPrimaryContactInternal(int oldContactID, int newContactID)
Parameters
oldContactIDintID of contact to be replaced
newContactIDintID of new contact to replace oldContact