Class Answer
Assembly: LemonEdge.API.Entities.Auto.dll
Syntax
[DataContract]
public class Answer : BaseEntity, IAnswer, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, IQuestionBase, ICloneableAsync<IAnswer>
Constructors
Answer()
Declaration
Properties
AnswerEnumType
The type of enum to be used for the answer.
Declaration
[StringLength(500)]
public string AnswerEnumType { get; set; }
Property Value
AnswerPropertyComboItems
Declaration
[NotMapped]
public KeyValuePair<string, string>[] AnswerPropertyComboItems { get; set; }
Property Value
EntityID
[Key] The globally unique id of the entity (of type EntityTypeID) that this answer is stored agaisnt
Declaration
[Required]
public Guid EntityID { get; set; }
Property Value
EntityTypeID
[Key] The type of entity this answer is being stored against
Declaration
[RequiredNoDefaultIDValidation]
public Guid EntityTypeID { get; set; }
Property Value
Modifier
The modifier to use to multiply the value of the user selected answer by.
Declaration
public decimal Modifier { get; set; }
Property Value
PresentedQuestion
The question to be presented to the user
Declaration
[StringLength(2000)]
public string PresentedQuestion { get; set; }
Property Value
QuestionID
Links to IQuestion. The questions this answer belongs to
Declaration
[RequiredNoDefaultIDValidation]
public Guid QuestionID { get; set; }
Property Value
QuestionTypeID
Links to IQuestionType. The question type the question of this answer belongs to
Declaration
[RequiredNoDefaultIDValidation]
public Guid QuestionTypeID { get; set; }
Property Value
QuestionTypeID_Label
Declaration
public string QuestionTypeID_Label { get; set; }
Property Value
QuestionTypeID_Label_Silent
Declaration
[NotMapped]
public string QuestionTypeID_Label_Silent { get; set; }
Property Value
SelectedAnswer
The value of the enum selected for this answer
Declaration
public short? SelectedAnswer { get; set; }
Property Value
Sequence
The sequence this Question is displayed to the user for this question type.
Declaration
public short Sequence { get; set; }
Property Value
Methods
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(IAnswer)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(IAnswer source)
Parameters
Type |
Name |
Description |
IAnswer |
source |
The source object to copy all values from.
|
SetAnswerPropertyComboItems(Func<Answer, KeyValuePair<string, string>[]>)
Declaration
public void SetAnswerPropertyComboItems(Func<Answer, KeyValuePair<string, string>[]> comboItems)
Parameters
Implements
Extension Methods