Class KEFCoreReadOnlyAttribute
- Namespace
- MASES.EntityFrameworkCore.KNet.Metadata
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
Marks this entity type as read-only within the current KEFCoreDbContext. Any attempt to write entries of this type via SaveChanges() will throw InvalidOperationException.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class KEFCoreReadOnlyAttribute : Attribute
- Inheritance
-
KEFCoreReadOnlyAttribute
- Inherited Members
Remarks
Unlike ReadOnlyMode which applies to the entire context, this attribute applies only to the decorated entity type, allowing mixed read/write models where some entities are immutable reference data.