Interface ICanBeEntity
Interface to mark anything that is an entity or is based on an entity to simplify checking if something can be used
2022-06-29 2dm - started this idea, but not completed. ATM doesn't serve a purpose yet
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface ICanBeEntity
- Extension Methods
Remarks
- Introduced 2022-06 (2sxc 15)
- Used extensively in 2sxc 18/19 for APIs which can accept a wide variety of data types
- Made visible in docs v21
Properties
Entity
Property to access the underlying entity.
IEntity Entity { get; }
Property Value
Remarks
Note that many inheriting objects will implement this explicitly, so the property is not visible on the object, unless you first cast it to ICanBeEntity.