AyCode.Core/AyCode.Core/Interfaces/README.md

931 B

Interfaces

Core interfaces used throughout the framework.

Key Files

  • IId.csIId<T> with T Id { get; set; }. The foundational interface for ID-bearing entities. Used by CollectionExtensions (merge/sync), IdentityMap (reference tracking), and all three serializers for reference resolution.
  • IForeignKey.cs — Marker interfaces for navigation property detection:
    • IForeignKey — empty marker
    • IForeignCollection<T> — generic collection navigation marker (T : IEnumerable)
    • IForeignCollection — non-generic variant
  • IAcSerializableToJson.cs — Empty marker interface tagging types that can serialize to JSON. Used for query-time type filtering.

LLM Maintenance: If you modify code in this folder, update this README to reflect the changes. If you notice the README content does not match the current code, automatically update the README to match the code.