Class Form
Assembly: Volo.Forms.Domain.dll
public class Form : FullAuditedAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp, IFullAuditedObject, IAuditedObject, ICreationAuditedObject, IHasCreationTime, IMayHaveCreator, IModificationAuditedObject, IHasModificationTime, IDeletionAuditedObject, IHasDeletionTime, ISoftDelete, IMultiTenant
Constructors
Declaration
Declaration
public Form(Guid id, string title, string description = null, bool canEditResponse = false, bool isCollectingEmail = false, bool hasLimitOneResponsePerUser = false, bool isAcceptingResponses = true, bool isQuiz = false, bool requiresLogin = false, Guid? tenantId = null)
Parameters
Properties
Declaration
public virtual bool CanEditResponse { get; protected set; }
Property Value
Declaration
public virtual string Description { get; protected set; }
Property Value
Declaration
public virtual bool HasLimitOneResponsePerUser { get; protected set; }
Property Value
Declaration
public virtual bool IsAcceptingResponses { get; protected set; }
Property Value
Declaration
public virtual bool IsCollectingEmail { get; protected set; }
Property Value
Declaration
public virtual bool IsQuiz { get; protected set; }
Property Value
Declaration
public virtual bool RequiresLogin { get; protected set; }
Property Value
Declaration
public virtual Guid? TenantId { get; protected set; }
Property Value
Declaration
public virtual string Title { get; protected set; }
Property Value
Methods
Declaration
public virtual void SetDescription(string description)
Parameters
Type |
Name |
Description |
string |
description |
|
Declaration
public virtual void SetSettings(bool canEditResponse = false, bool isCollectingEmail = false, bool hasLimitOneResponsePerUser = false, bool isAcceptingResponses = true, bool isQuiz = false, bool requiresLogin = false)
Parameters
Type |
Name |
Description |
bool |
canEditResponse |
|
bool |
isCollectingEmail |
|
bool |
hasLimitOneResponsePerUser |
|
bool |
isAcceptingResponses |
|
bool |
isQuiz |
|
bool |
requiresLogin |
|
Declaration
public virtual void SetTitle(string title)
Parameters
Type |
Name |
Description |
string |
title |
|
Declaration
public virtual void Undelete()
Implements
Extension Methods