Skip to content
Alessio Di Salvo edited this page Oct 30, 2026 · 2 revisions

Domain Layer (ModularNet.Domain)

The ModularNet.Domain project contains pure data structures (POCOs) with no constructors and no business logic, following the Anemic Domain Model described in Coding Standards.

Contents

  • Entities/: Core data models shared across layers:
    • BaseEntity: Base class with common properties (Id, timestamps).
    • User: Application user entity.
    • UserSetting & UserSettingDto: User-specific configuration items.
    • AppSettings: Strongly-typed representation of the AppSettings configuration section (KeyVault, LogsConfig, ModularNetConfig, AzureEmailService, WebAppConfigs, FirebaseConfig).
    • InMemoryCacheItem: Item wrapper for the in-memory cache (ItemKey, ItemValue, ExpirationDate).
    • ModularNetAudit: Audit trail entry.
    • ModularNetEmail & NewModularNetEmail: Email persistence and creation models.
    • ModularNetLog: Structured application log entry.
  • Requests/: Request DTOs passed from ModularNet.Api controllers to ModularNet.Business managers (RegisterUserRequest, SignUpUserRequest, SignInUserRequest, UserSignInRequest, SignInWithExternalProviderRequest, VerifyAuthenticationRequest, VerifyEmailRequest, ResetPasswordRequest, GetUserTokenRequest, LogoutRequest, CreateOrUpdateUserSettingsRequest, WriteLogRequest).
  • Enums/: Strongly-typed enumerations (AuditType, CacheType).
  • CustomExceptions/: Domain-specific exceptions (EncryptionException, ValidationException).

Clone this wiki locally