Class ModelFromEntityBasic
A basic model (record) of entities.
It extends the blank implementation by providing the basic Entity properties Id, Guid and Title by default.
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public abstract record ModelFromEntityBasic : ModelFromEntity, IModelFromEntity, IModelFromData, IModelSetup<IEntity>, IEquatable<ModelFromEntity>, IModelFromEntityBasic, ICanBeEntity, IEquatable<ModelFromEntityBasic>
- Inheritance
-
objectModelFromEntityBasic
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ModelFromEntityBasic()
Empty constructor, so it can be inherited without having to specify a constructor.
protected ModelFromEntityBasic()
ModelFromEntityBasic(IEntity)
Constructor which already includes the data to wrap; rarely used.
protected ModelFromEntityBasic(IEntity entity)
Parameters
entityIEntity
Properties
Guid
The entity guid, as quick, nice accessor.
public Guid Guid { get; }
Property Value
- Guid
The guid, or an empty-guid of no entity available
Id
The entity id, as quick, nice accessor.
public int Id { get; }
Property Value
- int
The id, or 0 if no entity available
Title
The title as string.
public virtual string Title { get; }
Property Value
- string
The title, or an empty string if not available or not string-able
Remarks
Can be overriden by other parts, if necessary.