Interface IAnswer
The system entity for user answers
Inherited Members
Namespace: LemonEdge.API.Entities.Questionaire
Assembly: LemonEdge.API.dll
Syntax
[EntityDefinition(EntityID.Answer, "dbo.LT_Answers", "Answer", IsStandingDataEntity = false)]
[DefaultEntityIcon(ImageType.Answer)]
[EntityIndex(Name = "AnswerEntities", ColumnNames = new string[] { "EntityID", "QuestionID" }, IndexOrder = new IndexOrder[] { IndexOrder.Ascending, IndexOrder.Ascending }, IsClustered = false, IsUnique = false)]
public interface IAnswer : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, IQuestionBase
Properties
EntityID
[Key] The globally unique id of the entity (of type EntityTypeID) that this answer is stored agaisnt
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityKeyProperty]
[Required]
[EntityDescription("The id of the item this answer is set against.")]
Guid EntityID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
EntityTypeID
[Key] The type of entity this answer is being stored against
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false, IsEntityTypeLink = true)]
[EntityKeyProperty]
[RequiredNoDefaultIDValidation]
[EntityDescription("The item type this answer is set against.")]
Guid EntityTypeID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
QuestionID
Links to IQuestion. The questions this answer belongs to
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityRelationship(EntityID.Question, "ID", SingleJoinType.One, "Question", "Answers", DeleteWithRelationship = true, InheritPermissions = true)]
[RequiredNoDefaultIDValidation]
[EntityKeyProperty]
Guid QuestionID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
QuestionTypeID
Links to IQuestionType. The question type the question of this answer belongs to
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityRelationship(EntityID.QuestionType, "ID", SingleJoinType.One, "Question Type", "Answers", DeleteWithRelationship = true, InheritPermissions = true)]
[RequiredNoDefaultIDValidation]
[EntityKeyProperty]
Guid QuestionTypeID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
SelectedAnswer
The value of the enum selected for this answer
Declaration
[EntityProperty(SQLType.SmallInt, true)]
[EntityDescription("The value of the enum selected for this answer.")]
short? SelectedAnswer { get; set; }
Property Value
Type | Description |
---|---|
short? |