Confinity Documentation
  • Latest Version
  • Latest Version
  • Getting Started

    • Introduction
    • Core Concepts
    • Create an Application
    • Glossary
  • Essentials

    • Authentication & SSO
    • Breaking Changes
    • Roslyn Source Analyzers
    • Changelog
    • ConfinityContent
    • ConfinitySelectable
    • Confinity Schedules
    • Data Seeding
    • Development guidelines [WIP]
    • Entity App
    • Entity Form
    • Entity Permissions
    • Frontend Configuration
    • Images
    • Known Issues
    • Localization
    • Migrations
    • Modules [WIP]
    • On-Site Editing
    • Settings
    • Cascade Delete
    • Replication
    • Infrastructure
  • Modules

    • Analytics Module
    • Assets Module
    • Blog Module
    • Cookie Consent Module
    • Forms Module
    • Friendly Captcha (Forms Module )
    • GeoIP Module
    • Htmx
    • Mail Module
    • Mailing Module
    • MediaPlayer Module
    • GoogleMyBusiness Module
    • OpenTelemetry Module
    • Pages Module [WIP]
    • Pattern Library Module
    • SIX Saferpay (worldline) Module
    • Products Module
    • Search Module
    • Wizard Module
  • Guides

    • Create a Custom Entity App Form Element
    • Date and Time
    • Entity Change Listener
    • File Upload / Temp File
    • HTTP security headers
    • conventions [WIP]
    • How to use Confinity with nginx
    • Notifications
    • Nullability
    • Rename Entity
    • Schedules
    • Useful snippets
    • Content Localization
  • Design Guidelines

    • Introduction
    • Page Components
    • Forms Module

Roslyn Source Analyzers

CY1000 - No parameterless constructor found

A type inheriting from ConfinityEntity must have a parameterless constructor (can be private).

CY1001 - Missing modifiers found

ConfinityContent class must be sealed or abstract.

CY1002 - Wrong constructor argument names

A type inheriting from ConfinitySelectable must have a constructor matching ctor(string id, string? label, int sortIndex = 0). The parameters label and sortIndex are optional.

CY1003 - Invalid navigation property

Using required navigation to access an entity that has PermissionOption.All defined may lead to unexpected results.

See Permissions / Navigation properties

CY1005 - Missing foreign key id

Confinity needs explicitly defined foreign key properties for all navigation properties. Use the code fix Generate foreign key property for a quick solution.

CY1006 - Always use non-nullable ICollection<T>

All collections in a ConfinityContent must be non-nullable and of type ICollection<T> with a default value.

CY1007 - Properties must have a default value

All non-nullable properties in a ConfinityContent must have a default value.

CY1008 - Property collection types can't inherit from ConfinityEntity

Collection property types in a ConfinityContent must not inherit from ConfinityEntity. Instead, wrap the entity with a EntityRef<T>.

CY1009 - Property types can't inherit from ConfinityEntity

Property types in a ConfinityContent must not inherit from ConfinityEntity. Instead, wrap the entity with a EntityRef<T>.

CY1010 - Nullable properties must not have a default value.

All nullable properties in a ConfinityContent must not have a default value.

Prev
Breaking Changes
Next
Changelog