• Documentation
  • Knowledgebase
Show / Hide Table of Contents
  • ConsoleTestApp
    • AppContext
    • Program
    • TestService
    • UserTestTrigger
  • ConsoleTestApp.Domain
    • IListAsyncTestService
    • ISeedService
    • ITestService
  • ConsoleTestApp.Infrastructure
    • AppContextFactory
  • ConsoleTestApp.Misc
    • AppConfigurationExtensions
    • CountryCodeEnumGenerator
  • ConsoleTestApp.Models
    • IFrontendModel
    • MvcModel
  • ConsoleTestApp.Service
    • AppUserService
    • ListAsyncTestService
    • SeedService
    • TenantConsoleResolver
  • PTS
    • ApplicationConfiguration
    • ArrayHelper
    • AssemblyLoader
    • BooleanResultHelper
    • ByteHelper
    • CharHelper
    • CollectionHelper
    • ConvertibleHelper
    • ConvertibleStructHelper
    • DataLogic
    • DateTimeCollectionHelper
    • DateTimeHelper
    • DateTimeQueryableExtensions
    • DateTimeRangeHelper
    • DateTimeToRangeExtensions
    • DbContextOptionsBuilderServiceHelper
    • DbContextOptionsEntityBindingExtensions
    • DbContextOptionsLoggerExtensions
    • DbContextOptionsServiceHelper
    • DecimalHelper
    • DictionaryHelper
    • EntityAffinityDbContextOptionsExtensions
    • EntityAffinityExtensions
    • EntityEventsDbContextExtensions
    • EntityEventsDbContextOptionsExtensions
    • EntityFrameworkCoreExtensions
    • EntityPropertyTranslationHelper
    • EntityServiceAccessorEventHelper
    • EnumFlagHelper
    • EnumHelper
    • Float64Helper
    • GenericTypeHelper
    • GlobalizationStringExtensions
    • HashSetHelper
    • IConfigurationProvider
    • IncludeContainersDbContextExtenions
    • IncludeQueryable
    • InitializeOnStartAttribute
    • Integer32Helper
    • Integer64Helper
    • ITimeProvider
    • ListHelper
    • ObjectExceptionHelper
    • ObjectHelper
    • RelatedToQueryable
    • RequireQueryable
    • ResultType
    • ServiceCollectionDbServiceExtensions
    • ServiceCollectionDiExtensions
    • ServiceCollectionModuleExtensions
    • ServiceProviderDiExtensions
    • StaticInitializer
    • StreamHelper
    • StreetAddress
    • StringArrayHelper
    • StringHelper
    • StructHelper
    • SystemTime
    • TenancyDbContextOptionsExtensions
    • ThenIncludeQueryable
    • ThenRequireQueryable
    • Time
    • TimeHelper
    • TimeRange
    • TimeSpanHelper
    • TypeCodeHelper
    • TypeHelper
    • UnsignedInteger32Helper
    • UriHelper
    • UtcTimeProvider
  • PTS.BusinessCore.Apex.Common
    • ApexCore
  • PTS.BusinessCore.Apex.Domain
    • IApexCore
  • PTS.BusinessCore.Bravo.Domain
    • IBravoCore
  • PTS.BusinessCore.Colossus.Domain
    • IColossusCore
  • PTS.BusinessCore.Dyno.Domain
    • IDynoCore
  • PTS.BusinessCore.Enigma.Domain
    • IEnigmaCore
  • PTS.Chronometry
    • AvailabilityStatus
    • ITimeRestricted
    • RepeatPeriod
    • RepeatPeriodHelper
    • TimeInterval
    • WeekPart
  • PTS.Collections
    • CollectionConvertor
    • CollectionQueryableExtensions
    • ConcurrentHashSet<T>
    • IPagedList
    • IPagedList<T>
    • MultiDictionary<TKey1, TKey2, TValue>
    • PagedList<T>
    • PartitionedHashSet
    • PartitionedHashSet<Tkey, TValue>
    • PartitionedList<Tkey, TValue>
    • PartitionedList<Tkey1, TKey2, TValue>
  • PTS.Concurrency
    • ExecutionCallContextProvider
    • ILogicalDataContainer
    • LocalDataContainer
    • StaticDictionary<TKey, TValue>
    • WeakReferenceTable<TKey, TValue>
  • PTS.DataStructures
    • Dto
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8, T9>
    • Dto<T1, T2, T3, T4, T5, T6, T7, T8>
    • Dto<T1, T2, T3, T4, T5, T6, T7>
    • Dto<T1, T2, T3, T4, T5, T6>
    • Dto<T1, T2, T3, T4, T5>
    • Dto<T1, T2, T3, T4>
    • Dto<T1, T2, T3>
    • Dto<T1, T2>
    • Dto<T1>
    • IDto
    • IHasPrimaryItem<T1>
    • ILot
    • Lot<TKey, TValue>
    • Pile<TValue>
  • PTS.DependencyInjection
    • IParentServiceProvider
    • ISeedWork
    • ISeedWork<TService>
    • IServiceProviderAccessor
    • IStartupDependency
  • PTS.DependencyInjection.Common
    • ParentServiceProvider
    • ServiceProviderAccessor
  • PTS.Diagnostics
    • LogAction
    • LogCategory
    • NoticeStatus
    • NoticeType
    • NoticeTypeHelper
    • RuntimeLogs
    • SystemMessage
    • SystemMessageList
  • PTS.DomainFramework.Common
    • AggregateRootService<TAggregateRoot, TAggregate>
    • SingleRepositoryService<TEntity>
    • TriggerHandler<TEntity>
    • UnitOfWorkService
  • PTS.DomainFramework.Domain
    • IDomainAggregateRoot
    • IDomainExtension
    • IDomainRoot
    • IRepository
    • IRepository<TEntity>
    • IRepositoryFactory
    • ITriggerHandler
    • ITriggerHandler<TEntity>
    • IUnitOfWork
    • RepositoryAction
    • ServiceCollectionTriggerExtensions
    • TriggerEvent
  • PTS.DomainFramework.Infrastructure
    • IHasDbContext
    • Repository
    • Repository<TEntity>
    • RepositoryFactory
    • UnitOfWork
  • PTS.EntityLayer
    • EntityAction
    • GuidKeyGenerator
  • PTS.EntityLayer.Affinity
    • EntityAffinityProvider
    • EntityAffinityService
    • IEntityAffinityService
  • PTS.EntityLayer.Binding
    • EntityAutoBinder
    • EntityBinder
    • EntityBinding<TEntity>
    • EntityBindingBinder
    • EntityBindingService
    • EntityClassBinder
    • EntityInterfaceBinder
    • IEntityBinder
    • IEntityBinding
    • IEntityBindingService
    • OverrideAttribute
    • SkipAttribute
    • TypeBinder
  • PTS.EntityLayer.Events
    • EntityEvent
    • EntityEventBinder
    • EntityEventCache
    • EntityEventHandler
    • EntityEventHandler<TEntity>
    • EntityEventSender<TValue>
    • EntityEventService
    • IEntityEventSender
    • IEntityEventService
    • PropertyState
    • SkipAttribute
  • PTS.EntityLayer.Extensibility
    • DbContextOptionsServiceCollectionExtension
    • DbContextOptionsServiceCollectionExtensionInfo
    • EntityService
    • EntityServiceCollection
    • EntityServiceScope
    • ExtensibleDbContext
    • IEntityServiceAccessor
    • IEntityServiceAccessor<TEntity>
    • IEntityServiceCollection
    • IEntityServiceProvider
    • IEntityServiceScope
    • IModelBuilderService
    • ModelBuilderService
  • PTS.EntityLayer.Logging
    • ConsoleLogger
    • QueryLoggerProvider
  • PTS.EntityLayer.Tenancy
    • AssignedTenant
    • ITenancyService
    • ITenantResolver
    • ParentScopeTenantResolver
    • TenancyService
    • TenantBinder
    • TenantBinding<TEntity>
  • PTS.Files
    • FileData
    • FileHelper
  • PTS.Globalization
    • CountryCode
    • CountryCodeHelper
    • CountryLocale
    • CountryLocaleProvider
    • CultureInfoHelper
    • CultureInfoProvider
    • CurrencyCode
    • CurrencyCodeHelper
    • DateFormat
    • DateFormatDefinition
    • DateFormatHelper
    • IanaAttribute
    • IbanHelper
    • LanguageCode
    • LanguageCodeHelper
    • LanguageCodeProvider
    • PhoneFormatDefinition
    • PhoneFormatHelper
    • PhoneFormatProvider
    • RegionInfoHelper
    • TimeZoneCode
    • TimeZoneCodeHelper
    • TimeZoneDateTimeHelper
    • TimeZoneTimeHelper
  • PTS.Includers
    • IIncluderExpressionService
    • IncludeOptions
    • Includer
    • Includer<TPrimary, TRigt>
    • Includer<TPrimary>
    • IncluderExpressionStaticProvider
    • IncluderParameters
    • RelatedIncluder<TPrimary, TLeft, TRigt>
    • ThenIncluder<TPrimary, TLeft, TRigt>
  • PTS.Includers.Infrastructure
    • ForeignKeyMap
    • ForeignKeyService
    • IForeignKeyService
    • IncludeExpressionBuilder
    • IncludeExpressionService
  • PTS.Modules._ModuleTemplate.Domain
    • Entity
  • PTS.Modules._ModuleTemplate.Ifrastructure
    • EntityBinding
  • PTS.Modules.Accounts.Domain
    • Account
    • IAccountService
  • PTS.Modules.Albums.Domain
    • IAlbumService
  • PTS.Modules.Classifications.Common
    • ClassificationService
  • PTS.Modules.Classifications.Domain
    • Classification
    • FilterOption
    • IClassificationsService
  • PTS.Modules.Classifications.Infrastructure
    • ClassificationBinding
  • PTS.Modules.Comments.Domain
    • ICommentService
  • PTS.Modules.CommerceComponent
    • CommissionMethod
    • DocumentStatus
    • IAmount
    • ICommerceComponentService
    • IDeclaration
    • IStatement
    • ITaxRecord
    • ITaxSubject
    • ITrader
    • TraderType
    • VatRegistrationType
    • VatSource
    • VatType
  • PTS.Modules.CommerceComponent.Common
    • CommerceComponentService
  • PTS.Modules.Contracts.Domain
    • ContractSignature
    • ContractStatus
    • ContractType
    • IContractService
  • PTS.Modules.DateTimeRangeComponent
    • DateTimeRange
  • PTS.Modules.Devices.Common
    • DeviceService
  • PTS.Modules.Devices.Domain
    • Application
    • Device
    • DeviceApp
    • IApplicationData
    • IDeviceData
    • IDeviceService
    • PlatformType
  • PTS.Modules.Devices.Extensions
    • ApplicationExtensions
    • DeviceExtensions
  • PTS.Modules.Devices.Infrastructure
    • ApplicationBinding
    • DeviceAppBinding
    • DeviceBinding
  • PTS.Modules.DistributionComponent
    • GdsRole
    • IGdsRecord
  • PTS.Modules.Domain
    • IBusinessComponent
    • IBusinessCore
    • IHasModule<TModule>
  • PTS.Modules.DynamicContents.Domain
    • DynamicContent
    • DynamicContentType
    • IDynamicContentService
  • PTS.Modules.DynamicContents.Infrastructure
    • DynamicContentBinding
  • PTS.Modules.DynamicTexts.Common
    • DynamicTextService
  • PTS.Modules.DynamicTexts.Domain
    • DynamicText
    • IDynamicTexts
    • TextType
  • PTS.Modules.DynamicTexts.Infrastructure
    • DynamicTextBinding
  • PTS.Modules.DynamicTexts.Tests.IntegrationTests
    • CultureInfoTests
    • FormattingTests
  • PTS.Modules.EntityTranslationComponent
    • EntityTranslation<TEntity>
    • IEntityPropertyTranslation<TEntity>
    • IEntityTranslationService<TBaseEntity, TTranslation>
    • IPropertyTranslation
    • PropertyTranslation
    • PropertyTranslationCollection
    • PropertyTranslationKey
  • PTS.Modules.EntityTranslationComponent.Common
    • EntityTranslationService<TBaseEntity, TTranslation>
  • PTS.Modules.EntityTranslationComponent.Infrastructure
    • EntityTranslationBinding<TEntity, TTranslation>
  • PTS.Modules.Events.Common
    • EventMemberTriggerService
    • EventTriggerService
  • PTS.Modules.Events.Domain
    • Event
    • EventMember
    • EventMemberStatus
    • EventRole
    • EventState
    • EventTime
    • EventTimeStatus
    • EventTimeType
    • EventType
    • IEventService
    • Privacy
  • PTS.Modules.Events.Infrastructure
    • EventBinding
    • EventMemberBinding
    • EventTimeBinding
  • PTS.Modules.Files.Domain
    • File
    • FileLink
    • FileRecordType
    • FileStatus
  • PTS.Modules.Files.Infrastructure
    • FileBinding
    • FileLinkBinding
  • PTS.Modules.Gds.Domain
    • RequestStatus
    • SyncStatus
    • TypeMeta
  • PTS.Modules.Hostnames.Common
    • HostnameService
  • PTS.Modules.Hostnames.Domain
    • Hostname
    • HostnameStatus
    • IHostnameService
  • PTS.Modules.Hostnames.Infrastructure
    • HostnameBinding
  • PTS.Modules.Hostnames.Tests.IntegrationTests
    • CaseSensitivityTests
  • PTS.Modules.Identities.Common
    • IdentityService
  • PTS.Modules.Identities.Domain
    • Identity
    • IdentityLocale
    • IIdentityService
  • PTS.Modules.Identities.Infrastructure
    • IdentityBinding
    • IdentityLocaleBinding
  • PTS.Modules.IdentitySettingExtension
    • SettingService
  • PTS.Modules.IdentitySettingExtension.Common
    • SettingTriggerService
  • PTS.Modules.IdentitySettingExtension.Domain
    • ISettingService
    • Setting
    • SettingType
  • PTS.Modules.IdentitySettingExtension.Infrastructure
    • SettingBinding
  • PTS.Modules.IdentityTokenExtension.Common
    • TokenService
    • TokenTrigger
  • PTS.Modules.IdentityTokenExtension.Domain
    • ITokenService
    • Token
    • TokenStatus
    • TokenType
    • TokenValueGenerator
  • PTS.Modules.IdentityTokenExtension.Infrastructure
    • TokenEntityBinding
  • PTS.Modules.IdentityTranslationExtension
    • IdentityTranslationService
  • PTS.Modules.IdentityTranslationExtension.Domain
    • IdentityTranslation
    • IIdentityTranslationService
  • PTS.Modules.IdentityTranslationExtension.Infrastructure
    • IdentityTranslationBinding
  • PTS.Modules.Instances.Domain
    • DataServer
    • DataServerLink
    • DataServerLinkType
    • DataServerPlatform
    • DataServerStatus
    • Instance
    • InstanceIdentityLink
    • InstanceLinkType
    • InstanceStatus
    • OnboardingStatus
  • PTS.Modules.Instances.Infrastructure
    • DataServerBinding
    • DataServerLinkBinding
    • InstanceBinding
    • InstanceIdentityLinkBinding
  • PTS.Modules.InternationalComponent
    • ILocale
    • Locale
    • LocalizedText
  • PTS.Modules.Invoices.Common
    • InvoiceService
  • PTS.Modules.Invoices.Domain
    • IInvoiceService
    • Invoice
    • InvoiceBillingInfo
    • InvoiceBillingInfoType
    • InvoiceItem
    • InvoiceStatus
  • PTS.Modules.Invoices.Infrastructure
    • InvoiceBillingInfoBinding
    • InvoiceBinding
    • InvoiceItemBinding
  • PTS.Modules.Invoices.Tests.IntegrationTests
    • InvoiceItemsMoneyCalculationsTests
  • PTS.Modules.Invoices.Tests.UnitTests
    • InvoiceCalculationUnitTests
  • PTS.Modules.LinkComponent
    • DistinctLink<TSource, TTarget, TDiscriminator>
    • IDistinctLink<TSource, TTarget, TDiscriminator>
    • ILink<TSource, TTarget>
    • Link<TSource, TTarget>
    • LinkStatus
    • LinkUpdateModel
  • PTS.Modules.LinkComponent.Infrastructure
    • DistinctLinkBindingHelper<TSource, TTarget, TDiscriminator>
  • PTS.Modules.Logins.Common
    • LoginService
  • PTS.Modules.Logins.Domain
    • ILoginService
    • Login
  • PTS.Modules.Logins.Infrastructure
    • LoginBinding
  • PTS.Modules.Logins.Tests.IntegrationTests
    • UsernameUniquenessTests
  • PTS.Modules.Logins.Tests.UnitTests
    • PasswordHashingUnitTests
  • PTS.Modules.LogPictureAggregate.Domain
    • SystemLogPicture
    • SystemLogPictureType
  • PTS.Modules.LogPictureAggregate.Infrastructure
    • SystemLogPictureBinding
  • PTS.Modules.Logs.Domain
    • FollowUpStatus
    • LogAction
    • LogCategory
    • LogType
    • SystemLog
  • PTS.Modules.Logs.Infrastructure
    • SystemLogBinding
  • PTS.Modules.MerchandiseComponent
    • DeliveryStatus
    • IMerchandiseComponent
    • ItemComposition
    • ItemType
    • RentalStatus
    • SaleStatus
  • PTS.Modules.Messages.Common
    • ConversationMessageTriggerService
    • ConversationTriggerService
  • PTS.Modules.Messages.Domain
    • Conversation
    • ConversationMember
    • ConversationMemberStatus
    • ConversationMessage
    • ConversationStatus
    • MemberStatus
    • MessageStatus
    • MessageType
    • ReadStatus
  • PTS.Modules.Messages.Infrastructure
    • ConversationBinding
    • ConversationMemberBinding
    • ConversationMessageBinding
  • PTS.Modules.Notifications.Common
    • NotificationPayloadTriggerService
    • NotificationProfileLinkTriggerService
    • NotificationService
    • NotificationTriggerService
  • PTS.Modules.Notifications.Domain
    • INotificationService
    • Notification
    • NotificationAttachment
    • NotificationAttachmentType
    • NotificationPayload
    • NotificationPayloadType
    • NotificationProfileLink
    • NotificationProfileLinkType
    • NotificationStatus
    • NotificationTemplate
    • NotificationTemplateGroup
    • NotificationTemplateGroupTiming
    • NotificationTemplateItem
    • NotificationType
    • ReadStatus
  • PTS.Modules.Notifications.Infrastructure
    • NotificationAttachmentBinding
    • NotificationBinding
    • NotificationPayloadBinding
    • NotificationProfileLinkBinding
    • NotificationTemplateBinding
    • NotificationTemplateGroupBinding
    • NotificationTemplateGroupTimingBinding
    • NotificationTemplateItemBinding
  • PTS.Modules.OrderItemEventAggregate.Domain
    • OrderItemEvent
    • OrderItemEventType
  • PTS.Modules.OrderItemEventAggregate.Infrastructure
    • OrderItemEventBinding
  • PTS.Modules.OrderNotificationAggregate.Domain
    • OrderNotification
  • PTS.Modules.OrderNotificationAggregate.Infrastructure
    • OrderNotificationBinding
  • PTS.Modules.Orders.Common
    • OrderService
  • PTS.Modules.Orders.Domain
    • IOrderService
    • MarketingSource
    • Order
    • OrderInvoicingMethod
    • OrderInvoicingStatus
    • OrderItem
    • OrderItemPricing
    • OrderItemStatus
    • OrderItemType
    • OrderStatus
    • OrderType
    • PriceUnitCalculationMethod
  • PTS.Modules.Orders.Infrastructure
    • OrderBinding
    • OrderItemBinding
    • OrderItemPricingBinding
  • PTS.Modules.OrderTransactionAggregate.Common
    • OrderTransactionService
  • PTS.Modules.OrderTransactionAggregate.Domain
    • IOrderTransactionService
    • OrderTransaction
    • OrderTransactionAggregateRoot
  • PTS.Modules.OrderTransactionAggregate.Infrastructure
    • OrderTransactionAggregateRootBinding
    • OrderTransactionBinding
  • PTS.Modules.PaymentComponent
    • PaymentMethod
    • PaymentStatus
    • RefundStatus
  • PTS.Modules.PhysicalAddresses.Domain
    • IHasCoordinates
    • IPhysicalAddress
    • IPlacesService
    • LocationType
    • MailingAddressType
    • PhysicalAddress
  • PTS.Modules.PhysicalAddresses.Infrastructure
    • PhysicalAddressBinding
  • PTS.Modules.Pictures
    • IPictureService
  • PTS.Modules.Pictures.Common
    • PictureService
  • PTS.Modules.Pictures.Domain
    • Picture
  • PTS.Modules.Pictures.Infrastructure
    • PictureBinding
  • PTS.Modules.ProductPriceEventAggregate.Domain
    • ProductPriceEvent
  • PTS.Modules.ProductPriceEventAggregate.Infrastructure
    • ProductPriceEventBinding
  • PTS.Modules.Products.Common
    • ProductService
  • PTS.Modules.Products.Domain
    • IPriceCalculationProvider
    • IPriceModel
    • IProductService
    • PriceChargeType
    • PriceCommission
    • PriceLevel
    • PriceModel
    • PriceOrigin
    • PricePeriod
    • PriceStatus
    • PriceType
    • PriceUnit
    • Product
    • ProductPrice
  • PTS.Modules.Products.Infrastructure
    • ProductBinding
    • ProductPriceBinding
  • PTS.Modules.ProfileAddressAggregate.Common
    • ProfileAddressService
  • PTS.Modules.ProfileAddressAggregate.Domain
    • IProfileAddressService
    • ProfileAddress
  • PTS.Modules.ProfileAddressAggregate.Infrastructure
    • ProfileAddressBinding
  • PTS.Modules.ProfileAliasExtension.Common
    • ProfileAliasService
    • ProfileAliasTrigger
  • PTS.Modules.ProfileAliasExtension.Domain
    • IProfileAliasService
    • ProfileAlias
  • PTS.Modules.ProfileAliasExtension.Infrastructure
    • ProfileAliasBinding
  • PTS.Modules.ProfileClassificationAggregate
    • ProfileClassificationService
  • PTS.Modules.ProfileClassificationAggregate.Domain
    • IProfileClassificationAggregateService
    • ProfileClassification
    • ValueType
  • PTS.Modules.ProfileClassificationAggregate.Infrastructure
    • ProfileClassificationBinding
  • PTS.Modules.ProfilePictureAggregate.Common
    • ProfilePictureService
  • PTS.Modules.ProfilePictureAggregate.Domain
    • IProfilePictureService
    • PictureType
    • ProfilePicture
  • PTS.Modules.ProfilePictureAggregate.Infrastructure
    • ProfilePictureBinding
  • PTS.Modules.ProfilePostClassificationAggregate.Common
    • ProfilePostClassificationService
    • ProfilePostClassificationTrigger
  • PTS.Modules.ProfilePostClassificationAggregate.Domain
    • IProfilePostClassificationService
    • ProfilePostClassification
  • PTS.Modules.ProfilePostClassificationAggregate.Infrastructure
    • ProfilePostClassificationBinding
  • PTS.Modules.ProfilePostExtension.Domain
    • ProfilePost
  • PTS.Modules.ProfilePostExtension.Infrastructure
    • ProfilePostBinding
  • PTS.Modules.Profiles.Common
    • ProfileLinkTriggerService
    • ProfileService
  • PTS.Modules.Profiles.Domain
    • Contact
    • ContactType
    • IProfileService
    • Profile
    • ProfileLink
    • ProfileLinkType
    • ProfileTypeLink
    • ProfileTypeLinkStatus
    • VerificationStatus
  • PTS.Modules.Profiles.Infrastructure
    • ContactBinding
    • ProfileBinding
    • ProfileLinkBinding
    • ProfileTypeLinkBinding
  • PTS.Modules.ProfileSeoExtension
    • ISeoData
  • PTS.Modules.ProfileSeoExtension.Common
    • ProfileSeoService
  • PTS.Modules.ProfileSeoExtension.Domain
    • IProfileSeoService
    • ProfileSeo
    • ProfileSeoExtensions
  • PTS.Modules.ProfileSeoExtension.Infrastructure
    • ProfileSeoBinding
  • PTS.Modules.ResultComponent
    • IResult
    • IValueResult<TValue>
    • Result
    • ResultSet
    • ValueResult<TValue>
  • PTS.Modules.StockItems.Common
    • StockItemTriggerService
  • PTS.Modules.StockItems.Domain
    • ItemProperty
    • MaintenanceStatus
    • ProductionStatus
    • PurchasingStatus
    • RentItemType
    • RepairStatus
    • StockItem
    • StockStatus
    • WearStatus
  • PTS.Modules.StockItems.Infrastructure
    • StockItemBinding
  • PTS.Modules.TenancyComponent
    • InstanceRole
  • PTS.Modules.Tests.Builders
    • IBuilder<T>
  • PTS.Modules.Tests.Builders.Accounts
    • AccountBuilder
    • IAccountBuilder
  • PTS.Modules.Tests.Builders.DynamicTexts
    • DynamicTextBuilder
    • IDynamicTextBuilder
  • PTS.Modules.Tests.Builders.Hostnames
    • HostnameBuilder
    • IHostnameBuilder
  • PTS.Modules.Tests.Infrastructure
    • ConnectionStringProvider
    • TestingDbContext
    • TestingDbContextFactory
    • TestingInMemoryUnitOfWork
    • TestingUnitOfWork
    • TestingUnitOfWorkFactory
  • PTS.Modules.Tests.Infrastructure.Extensions
    • IRepositoryExtensions
  • PTS.Modules.TimeComponent
    • Frequency
  • PTS.Modules.Transactions.Common
    • MoneyAccountActivityTriggerService
    • MoneyAccountTriggerService
    • TransactionService
    • TransactionTriggerService
  • PTS.Modules.Transactions.Domain
    • BalanceType
    • CaptureStatus
    • ITransactionService
    • MoneyAccount
    • MoneyAccountActivity
    • MoneyAccountStatus
    • MoneyAccountType
    • MoneyActivityType
    • PaymentProviderStatus
    • PaymentProviderType
    • RecurringTransaction
    • RecurringTransactionStatus
    • RefundStatus
    • Transaction
    • TransactionCodes
    • TransactionInfo
    • TransactionInfoType
    • TransactionMethod
    • TransactionStatus
    • TransactionType
  • PTS.Modules.Transactions.Infrastructure
    • MoneyAccountActivityBinding
    • MoneyAccountBinding
    • RecurringTransactionBinding
    • TransactionBinding
    • TransactionInfoBinding
  • PTS.Modules.Translations.Common
    • TranslationService
  • PTS.Modules.Translations.Domain
    • ITranslationService
    • TranslatedEntity<TEntity>
    • TranslatedProperty
    • Translation
  • PTS.Modules.Translations.Infrastructure
    • TranslationBinding
  • PTS.Modules.UrlRedirects.Common
    • UrlRedirectTriggerService
  • PTS.Modules.UrlRedirects.Domain
    • UrlRedirect
  • PTS.Modules.UrlRedirects.Infrastructure
    • UrlRedirectBinding
  • PTS.Modules.Users
    • Gender
  • PTS.Modules.Users.Common
    • UserService
    • UserTriggerService
  • PTS.Modules.Users.Domain
    • IUserService
    • User
    • UserStatus
  • PTS.Numbers
    • NumericBaseConvertor
  • PTS.Numbers.UnitTests
    • NumericBaseConvertorTests
  • PTS.Physics
    • MeasurementCultureAttribute
    • MeasurementTypeAttribute
    • PhysicalProperty
    • PhysicalUnit
    • PhysicalUnitCulture
  • PTS.Physics.UnitTests
    • UniqueEnumValuesTest
  • PTS.Randomization
    • Randomizer
    • RandomSequenceComponents
  • PTS.Records
    • IHasGuid
    • IIdRecord
    • IOwnedRecord
    • SequentialGuid
    • State
  • PTS.Reflection
    • CustomAttributeHelper
    • GenericMethodInfoHelper
    • GenericTypeHelper
    • ObjectFactory
    • ReflectionTypeHelper
    • TypeMapper
  • PTS.Spatial
    • Pivot<T>
    • Point2D<T>
    • Point3D<T>
    • SpatialHelper
    • Square<T>
  • PTS.Text
    • PersonalNameHelper
    • RandomWord
    • Slugifier
    • Transliterator
  • PTS.Text.UnitTests
    • PersonalNameHelperTests
    • RandomWordTests
    • SlugifierTests
    • TransliteratorTests
  • PTS.Workers
    • IJob
    • Interval
    • Job
    • JobAsync
    • JobManager
    • JobTiming

StringHelper Class

Namespace: PTS
Assembly: PTSframework.dll

Provides a set of static methods for string type.

Syntax
public static class StringHelper
Inheritance
System.Object
StringHelper

Methods

After(String, String)

Gets a substring after the last occurence of delimiter.

Declaration
public static string After(this string input, string delimiter)
Parameters
Type Name Description
System.String input

The string to get the substring from.

System.String delimiter

Regular expression with the pattern that will be used as leftmost boundary for new the substring.

Returns
Type Description
System.String

String remainder of the original input after the delimiter.

Append(String, String[])

Appends instances of string tokens to this instance.

Declaration
public static string Append(this string input, params string[] tokens)
Parameters
Type Name Description
System.String input

The instance to append the tokens to.

System.String[] tokens

The string tokens to append.

Returns
Type Description
System.String

A new instance of string with the original input joined by specified tokens.

Base64Decode(String)

Converts the specified string, which encodes binary data as base-64 digits, to an equivalent utf-8 string.

Declaration
public static string Base64Decode(this string input)
Parameters
Type Name Description
System.String input

The base-64 encoded string to convert.

Returns
Type Description
System.String

A string that contains the results of decoding the specified base-64 string.

Base64Encode(String)

Converts the specified utf-8 string to its equivalent string representation that is encoded with base-64 digits.

Declaration
public static string Base64Encode(this string input)
Parameters
Type Name Description
System.String input

The string to encode.

Returns
Type Description
System.String

The string representation, in base 64, of the original string input.

Before(String, String)

Gets a substring before the first occurence of delimiter.

Declaration
public static string Before(this string input, string delimiter)
Parameters
Type Name Description
System.String input

The string to get the substring from.

System.String delimiter

Regular expression with the pattern that will be used as rightmost boundary for new the substring.

Returns
Type Description
System.String

String remainder of the original input first the first occurence of specified delimiter.

Chunk(String, Int32, Int32)

Retrieves a substring from this instance at specified length and starting position.

Declaration
public static string Chunk(this string input, int length, int startIndex = 0)
Parameters
Type Name Description
System.String input

The string instance to get a part of.

System.Int32 length

The number of characters in the substring.

System.Int32 startIndex

The zero-based starting character position of a substring in this instance.

Returns
Type Description
System.String

A string that is equivalent to the substring of length that begins at startIndex in this instance.

CompactWhitespace(String)

Replaces muliple sequential white space characters with single white space.

Declaration
public static string CompactWhitespace(this string input)
Parameters
Type Name Description
System.String input

The string to remove extra white space characters from.

Returns
Type Description
System.String

A new string instance with extra white spaces removed.

ContainsEmails(String)

Checks whether this instance of string contains an email address.

Declaration
public static bool ContainsEmails(this string input)
Parameters
Type Name Description
System.String input

The string to match the email address pattern against.

Returns
Type Description
System.Boolean

If the string contains an email address then true, otherwise false.

ContainsHtml(String)

Checks whether this instance of string contains html code.

Declaration
public static bool ContainsHtml(this string input)
Parameters
Type Name Description
System.String input

The string to match the html code patterns against.

Returns
Type Description
System.Boolean

If the string contains html code then true, otherwise false.

ContainsNumber(String)

Checks whether this instance of string contains a number.

Declaration
public static bool ContainsNumber(this string input)
Parameters
Type Name Description
System.String input

The string to match the number pattern against.

Returns
Type Description
System.Boolean

If the string contains a number then true, otherwise false.

ContainsUrl(String)

Checks whether this instance of string contains an url address.

Declaration
public static bool ContainsUrl(this string input)
Parameters
Type Name Description
System.String input

The string to match the url address pattern against.

Returns
Type Description
System.Boolean

If the string contains an url address then true, otherwise false.

Count(String, Char)

Gets the number of specified character occurences in this instance of a string.

Declaration
public static int Count(this string input, char ch)
Parameters
Type Name Description
System.String input

The string to get the number of character occurrences from.

System.Char ch

The character to look for.

Returns
Type Description
System.Int32

An integer input representing the number of occurrences of the specified character in given string instance.

Ending(String, Int32)

Gets a substring after the specified character position.

Declaration
public static string Ending(this string input, int start)
Parameters
Type Name Description
System.String input

The string to get the substring from.

System.Int32 start

Integer input representing the starting position of the substring.

Returns
Type Description
System.String

String remainder of the original input after the specified position.

EscapeHtml(String)

Replaces html tag charcters with html encoded equivalents.

Declaration
public static string EscapeHtml(this string input)
Parameters
Type Name Description
System.String input

The string to escape the html code in.

Returns
Type Description
System.String

A new string instance with escaped html tags.

FileExtension(String)

Parses out the file extension input out of this string instance.

Declaration
public static string FileExtension(this string input)
Parameters
Type Name Description
System.String input

The string to parse the file extension from.

Returns
Type Description
System.String

File extension if present, otherwise null.

FirstMatchPosition(String, String)

Returns the position of the first regular expression pattern match in this string instance.

Declaration
public static int? FirstMatchPosition(this string input, string pattern)
Parameters
Type Name Description
System.String input

The string to match the pattern against.

System.String pattern

Regular expression pattern to look for.

Returns
Type Description
System.Nullable<System.Int32>

If the pattern has match then the postion of the first occurence, otherwise null.

FirstWord(String)

Gets the first contiguous character set before the first white space character in this string instance.

Declaration
public static string FirstWord(this string input)
Parameters
Type Name Description
System.String input

The string to get the first word from.

Returns
Type Description
System.String

A new string instance with the first word from the original string.

HtmlToPlaintext(String)

Replaces html line breaks and whitespace characters with their plain text equivalents.

Declaration
public static string HtmlToPlaintext(string input)
Parameters
Type Name Description
System.String input

The string to replace the html text flow elements with plaintext characters in.

Returns
Type Description
System.String

A new instance of string with plain text version of line breaks and white spaces.

IsBoolean(String)

Checks whether this instance of string represents boolean input.

Declaration
public static bool IsBoolean(this string input)
Parameters
Type Name Description
System.String input

The string to match against boolean input patterns.

Returns
Type Description
System.Boolean

If the string represents boolean input then true, otherwise false.

IsDecimal(String)

Checks whether this instance of string represents decimal number.

Declaration
public static bool IsDecimal(this string input)
Parameters
Type Name Description
System.String input

The string to match against decimal number patterns.

Returns
Type Description
System.Boolean

If the string represents decimal number then true, otherwise false.

IsEmail(String)

Checks whether this instance of string represents email address.

Declaration
public static bool IsEmail(this string input)
Parameters
Type Name Description
System.String input

The string to match against email address patterns.

Returns
Type Description
System.Boolean

If the string represents email address then true, otherwise false.

IsEmpty(String)

Checks whether this instance of string is null or empty.

Declaration
public static bool IsEmpty(this string input)
Parameters
Type Name Description
System.String input

The string to check if empty or null.

Returns
Type Description
System.Boolean

If the string is null or empty then true, otherwise false.

IsFilePath(String)

Checks whether this instance of string represents system file path.

Declaration
public static bool IsFilePath(this string input)
Parameters
Type Name Description
System.String input

The string to match against system file path patterns.

Returns
Type Description
System.Boolean

If the string represents system file path then true, otherwise false.

IsIntegral(String)

Checks whether this instance of string represents a signed integer number.

Declaration
public static bool IsIntegral(this string input)
Parameters
Type Name Description
System.String input

The string to match against signed integer number patterns.

Returns
Type Description
System.Boolean

If the string represents a signed integer number then true, otherwise false.

IsLongerThan(String, Int32)

Checks whether this instance of string is longer than specified length.

Declaration
public static bool IsLongerThan(this string input, int length)
Parameters
Type Name Description
System.String input

The string to check the length of.

System.Int32 length

Lenght the string should be longer than.

Returns
Type Description
System.Boolean

If the string is longer than specified length then true, otherwise false.

IsMatch(String, String)

Checks whether this instance of string matches the specified pattern.

Declaration
public static bool IsMatch(this string input, string pattern)
Parameters
Type Name Description
System.String input

The string to match against the pattern.

System.String pattern

Regular expression pattern to look for.

Returns
Type Description
System.Boolean

If the string matches the specified pattern then true, otherwise false.

IsPhoneNumber(String)

Checks whether this instance of string represents a phone number.

Declaration
public static bool IsPhoneNumber(this string input)
Parameters
Type Name Description
System.String input

The string to match against phone number patterns.

Returns
Type Description
System.Boolean

If the string represents phone number then true, otherwise false.

IsText(String)

Checks whether this instance of string represents general text content.

Declaration
public static bool IsText(this string input)
Parameters
Type Name Description
System.String input

The string to match against general text content patterns.

Returns
Type Description
System.Boolean

If the string represents general text content then true, otherwise false.

IsUnsignedDecimal(String)

Checks whether this instance of string represents an unsigned decimal number.

Declaration
public static bool IsUnsignedDecimal(this string input)
Parameters
Type Name Description
System.String input

The string to match against unsigned decimal number patterns.

Returns
Type Description
System.Boolean

If the string represents unsigned decimal number then true, otherwise false.

IsUnsignedIntegral(String)

Checks whether this instance of string represents an unsigned integer number.

Declaration
public static bool IsUnsignedIntegral(this string input)
Parameters
Type Name Description
System.String input

The string to match against unsigned integer number patterns.

Returns
Type Description
System.Boolean

If the string represents unsigned integer number then true, otherwise false.

IsUrl(String)

Checks whether this instance of string represents an url address.

Declaration
public static bool IsUrl(this string input)
Parameters
Type Name Description
System.String input

The string to match against url address patterns.

Returns
Type Description
System.Boolean

If the string represents an url address then true, otherwise false.

LastMatchPosition(String, String)

Returns the position of the last regular expression pattern match in this string instance.

Declaration
public static int? LastMatchPosition(this string input, string pattern)
Parameters
Type Name Description
System.String input

The string to match the pattern against.

System.String pattern

Regular expression pattern to look for.

Returns
Type Description
System.Nullable<System.Int32>

If the pattern has match then the postion of the last occurence, otherwise null.

NotEmpty(String)

Checks whether this instance of string is not null nor empty.

Declaration
public static bool NotEmpty(this string input)
Parameters
Type Name Description
System.String input

The string to check if not empty nor null.

Returns
Type Description
System.Boolean

If the string is null or empty then false, otherwise true.

Remove(String, String)

Retrieves a new string instance with removed parts matching the specified pattern.

Declaration
public static string Remove(this string input, string pattern)
Parameters
Type Name Description
System.String input

The string to remove the matches from.

System.String pattern

Regular expression pattern to look for.

Returns
Type Description
System.String

A new string that with removed parts matching the pattarn specified as parameter.

RemoveHtml(String)

Returns a new string with all occurences of html tags removed.

Declaration
public static string RemoveHtml(this string input)
Parameters
Type Name Description
System.String input

The string to remove the html tags from.

Returns
Type Description
System.String

A new string without any html tags.

RemoveWhitespace(String)

Returns a new string with all occurences of white space characters removed.

Declaration
public static string RemoveWhitespace(this string input)
Parameters
Type Name Description
System.String input

The string to remove the white space characters from.

Returns
Type Description
System.String

A new string without any white space characters.

Repeat(String, Int32)

Returns a new string with specified number of repeated occurences of the original string.

Declaration
public static string Repeat(this string input, int count)
Parameters
Type Name Description
System.String input

The string to be repeated.

System.Int32 count

The number of repetitions.

Returns
Type Description
System.String

A new string with specified number of repetitions of the original string.

ReplaceMatch(String, String, String)

Declaration
public static string ReplaceMatch(this string input, string pattern, string replacement)
Parameters
Type Name Description
System.String input
System.String pattern
System.String replacement
Returns
Type Description
System.String

Reverse(String)

Returns a new string with reversed character sequence.

Declaration
public static string Reverse(this string input)
Parameters
Type Name Description
System.String input

The string to reverse the characters for.

Returns
Type Description
System.String

A new string with reversed order of characters.

Sha256(String)

Returns SHA256 hash representation of given string.

Declaration
public static string Sha256(this string input)
Parameters
Type Name Description
System.String input

Value to represent as SHA256 hash.

Returns
Type Description
System.String

A new string representing SHA256 equivalent of the original string.

Snippet(String, Int32, String)

Returns a new substring at specified lenght with specified suffix at the end if the substring is shorter than the original.

Declaration
public static string Snippet(this string input, int length, string suffix = "...")
Parameters
Type Name Description
System.String input

The string instance to get a snippet from.

System.Int32 length

Character count of the output snippet.

System.String suffix

Will be appended at the end if the substring is shorter than the original string.

Returns
Type Description
System.String

Returns a new substring at specified length with specified suffix at the if the substring is shorter than the original string.

SplitFill(String, ICollection<String>, String, Boolean)

Splits the string into chunks with specified delimiter and fills the provided collection with the results.

Declaration
public static void SplitFill(this string input, ICollection<string> collection, string delimiter, bool skipEmpty = true)
Parameters
Type Name Description
System.String input

The string to split into substrings.

System.Collections.Generic.ICollection<System.String> collection

Collection to add the resulting substrings to.

System.String delimiter

Regular expression with the pattern that will be used as the boundary to identify new substrings.

System.Boolean skipEmpty

If set to true, empty chunks will not be added to the collection.

ToChunks(String, String, Boolean)

Splits the string into chunks with specified delimiter and returns the results as array.

Declaration
public static string[] ToChunks(this string input, string delimiter, bool skipEmpty = true)
Parameters
Type Name Description
System.String input

The string to split into substrings.

System.String delimiter

Regular expression with the pattern that will be used as the boundary to identify new substrings.

System.Boolean skipEmpty

If set to true, empty chunks will not be added to the array.

Returns
Type Description
System.String[]

Array of substrings that were separated from the original string by specified delimiter.

ToEnum<TEnum>(String, Boolean)

Converts the specified string to an enumeration member.

Declaration
public static TEnum ToEnum<TEnum>(this string input, bool ignoreCase = true)
    where TEnum : struct, Enum
Parameters
Type Name Description
System.String input

The value convert to an enumeration member.

System.Boolean ignoreCase

If set to true letter case will be ignored when parsing.

Returns
Type Description
TEnum

An enumeration object with equivalent value if present, othewise default value of given enum type.

Type Parameters
Name Description
TEnum

The enumeration type to return.

ToHtml(String)

Declaration
public static string ToHtml(this string input)
Parameters
Type Name Description
System.String input
Returns
Type Description
System.String

ToLines(String, Boolean)

Splits the string into chunks with line breaks and returns the results as array.

Declaration
public static string[] ToLines(this string input, bool skipEmpty = true)
Parameters
Type Name Description
System.String input

The string to split into substrings.

System.Boolean skipEmpty

If set to true, empty chunks will not be added to the array.

Returns
Type Description
System.String[]

Array of substrings that were separated from the original string by line breaks.

ToMatches(String, String)

Searches the specified input string for all occurrences of a regular expression and returns matched values as array.

Declaration
public static string[] ToMatches(this string input, string pattern)
Parameters
Type Name Description
System.String input

The string to search for a match.

System.String pattern

The regular expression pattern to match.

Returns
Type Description
System.String[]

Strings found by the search. If no matches are found, the method returns an empty string array.

ToNullableEnum<TEnum>(String, Boolean)

Converts the specified string to a nullable enumeration member.

Declaration
public static TEnum? ToNullableEnum<TEnum>(this string input, bool ignoreCase = true)
    where TEnum : struct, Enum
Parameters
Type Name Description
System.String input

The value convert to an enumeration member.

System.Boolean ignoreCase

If set to true letter case will be ignored when parsing.

Returns
Type Description
System.Nullable<TEnum>

A nullable enumeration object with equivalent value if present, othewise null.

Type Parameters
Name Description
TEnum

The enumeration type to return as nullable.

ToPhoneNumber(String)

Declaration
public static string ToPhoneNumber(this string input)
Parameters
Type Name Description
System.String input
Returns
Type Description
System.String

ToStream(String)

Declaration
public static Stream ToStream(this string input)
Parameters
Type Name Description
System.String input
Returns
Type Description
System.IO.Stream

ToWords(String, Boolean)

Splits the string into chunks with white space delimiter and returns the results as array.

Declaration
public static string[] ToWords(this string input, bool skipEmpty = true)
Parameters
Type Name Description
System.String input

The string to split into substrings.

System.Boolean skipEmpty

If set to true, empty chunks will not be added to the array.

Returns
Type Description
System.String[]

Array of substrings that were separated from the original string by white space characters.

UrlEncode(String)

Declaration
public static string UrlEncode(this string input)
Parameters
Type Name Description
System.String input
Returns
Type Description
System.String

UrlEscape(String)

Declaration
public static string UrlEscape(this string input)
Parameters
Type Name Description
System.String input
Returns
Type Description
System.String

Whoa2(String)

Declaration
public static void Whoa2(this string input)
Parameters
Type Name Description
System.String input

WriteVariables(String, Object[])

Declaration
public static string WriteVariables(this string input, params object[] values)
Parameters
Type Name Description
System.String input
System.Object[] values
Returns
Type Description
System.String

Inherited Members

System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Back to top Copyright © 2019 PTS Holding LLC