public abstract class CustomerRepository<TCustomer, TAddress, TPhone, TFax, TEmail, TWebsite, TAffiliation> : RepositoryReadOnly<TCustomer>,
ICachingRepository
where TCustomer : new(), Customer<TAddress, TPhone, TFax, TEmail, TWebsite, TAffiliation>
where TAddress : CustomerAddress
where TPhone : CustomerPhone
where TFax : CustomerFax
where TEmail : CustomerEmail
where TWebsite : CustomerWebsite
where TAffiliation : new(), CustomerAffiliation
Public MustInherit Class CustomerRepository(Of TCustomer As {New, Customer(Of TAddress, TPhone, TFax, TEmail, TWebsite, TAffiliation)}, TAddress As CustomerAddress, TPhone As CustomerPhone, TFax As CustomerFax, TEmail As CustomerEmail, TWebsite As CustomerWebsite, TAffiliation As {New, CustomerAffiliation})
Inherits RepositoryReadOnly(Of TCustomer)
Implements ICachingRepository
generic<typename TCustomer, typename TAddress, typename TPhone, typename TFax, typename TEmail, typename TWebsite, typename TAffiliation>
where TCustomer : gcnew(), Customer<TAddress, TPhone, TFax, TEmail, TWebsite, TAffiliation>
where TAddress : CustomerAddress
where TPhone : CustomerPhone
where TFax : CustomerFax
where TEmail : CustomerEmail
where TWebsite : CustomerWebsite
where TAffiliation : gcnew(), CustomerAffiliation
public ref class CustomerRepository abstract : public RepositoryReadOnly<TCustomer>,
ICachingRepository
[<AbstractClassAttribute>]
type CustomerRepository<'TCustomer, 'TAddress, 'TPhone, 'TFax, 'TEmail, 'TWebsite, 'TAffiliation when 'TCustomer : new() and Customer<'TAddress, 'TPhone, 'TFax, 'TEmail, 'TWebsite, 'TAffiliation> when 'TAddress : CustomerAddress when 'TPhone : CustomerPhone when 'TFax : CustomerFax when 'TEmail : CustomerEmail when 'TWebsite : CustomerWebsite when 'TAffiliation : new() and CustomerAffiliation> =
class
inherit RepositoryReadOnly<'TCustomer>
interface ICachingRepository
end
ConfigurationListProvider |
A way to access configuration lists defined in netFORUM
(Inherited from RepositoryReadOnlyT) |
GeneralRepository |
A general repository available for use in all underlying entity and sub-entity operations
(Inherited from RepositoryReadOnlyT) |
Settings |
Settings specifying how this repository should behave with regard to both entity and sub-entity management
(Inherited from RepositoryReadOnlyT) |
ValueTypeProvider |
A ValueTypeProvider available for use in pulling any required value type sub-entities
(Inherited from RepositoryReadOnlyT) Obsolete. |
ClearAuxiliaryCaches |
Clears any additional cached data associated with this repository
(Inherited from RepositoryReadOnlyT) |
ClearCache |
Clears all cached data associated with this repository, for both top-level entities and all sub-entities
(Inherited from RepositoryReadOnlyT) |
Delete | Delete a customer |
Find(ExpressionFuncT, Boolean, GetAllOptions) |
Retrieves a list of all entities matching a given set of search criteria
(Inherited from RepositoryReadOnlyT) |
Find(ExpressionFuncT, Boolean, ExpressionFuncT, IEnumerableNetForumEntity) |
Retrieves a list of all entities matching a given set of search criteria
(Inherited from RepositoryReadOnlyT) |
FindByPrimaryEmail(String) | Retrieves all customers sharing a primary email address. |
FindByPrimaryEmailT(String) | Retrieves all customers sharing a primary email address. |
GetAddressHoldTypes | Retrieves a list of all known Address Hold Types |
GetAddressTypes | Retrieves a list of all known Address Types |
GetAll(ExpressionFuncT, IEnumerableNetForumEntity) |
Retrieves a list of all known entities managed by this repository
(Inherited from RepositoryReadOnlyT) |
GetAll(GetAllOptions) |
Retrieves a list of all known entities managed by this repository
(Inherited from RepositoryReadOnlyT) |
GetById(NetForumId) |
Retrieves a single entity by id
(Inherited from RepositoryReadOnlyT) |
GetByPrimaryEmail(String) | Retrieves a single customer by their unique primary email address. |
GetByPrimaryEmailT(String) | Retrieves a single customer by their unique primary email address. |
GetByRecordNumber(Int32) | Retrieves a single customer by their record number. |
GetByRecordNumberT(Int32) | Retrieves a single customer by their record number. |
GetByWebLogin(String) | Retrieves a single customer by their web login. |
GetByWebLoginT(String) | Retrieves a single customer by their web login. |
GetEmailTypes | Retrieves a list of all known Email Types |
GetFaxTypes | Retrieves a list of all known Fax Types |
GetMembershipStatuses | Retrieves a list of all known Membership Statuses |
GetMembershipTypes | Retrieves a list of all known Membership Types |
GetNamePrefixes | Retrieves a list of all known Name Prefixes |
GetNameSuffixes | Retrieves a list of all known Name Suffixes |
GetPhoneTypes | Retrieves a list of all known Phone Types |
GetPreferredCommunicationMethods | Retrieves a list of all known Communication Methods |
GetRelationshipTypes | Retrieves a list of all known Relationship Types |
GetWebsiteTypes | Retrieves a list of all known Website Types |
InitializeSubEntities | (Overrides RepositoryReadOnlyTInitializeSubEntities(T)) |
IsEmailAvailable | Determines if a given email address is currently unused, and thus available for use. |
IsWebLoginAvailable | Determines if a given web login is currently unused across all customers (including any soft-deleted customers), and thus available for use. |
PrimeCache |
Retrieves and caches the set of all known entities managed by this repository, in order to increase the performance of future
GetAll(GetAllOptions) and GetById(NetForumId) requests. Performance of Find(ExpressionFuncT, Boolean, GetAllOptions) requests will not be improved.
(Inherited from RepositoryReadOnlyT) |
RemoveFromCache |
Removes the entity with the specified id from the top-level entity cache if caching is enabled
(Inherited from RepositoryReadOnlyT) |
Save | Save a customer |