Search Results for

    Show / Hide Table of Contents

    Interface IAnswer

    The system entity for user answers

    Inherited Members
    IBaseEntity.GetLabel(string)
    IBaseEntity.SetLabel(string, string)
    IBaseEntity.SetSilentLabel(string, string)
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.AlgorithmStepID
    IBaseEntity.SafeID
    IEquatable<IBaseEntity>.Equals(IBaseEntity)
    INotifyPropertyChanged.PropertyChanged
    INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(object)
    ICloneableAsync.CopyFromSource(object)
    ICanTrackProperties.HasTrackedPropertyChanged(string)
    ICanTrackProperties.OriginalTrackedPropertyValue(string)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(string)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    IQuestionBase.PresentedQuestion
    IQuestionBase.Sequence
    IQuestionBase.Modifier
    IQuestionBase.AnswerEnumType
    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?

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    IQuestionType
    IQuestion
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.