Class DataSource
Namespace: Casewhere.Models
Assembly: Casewhere.Models.dll
Represents a data source entity. Where applications and components fetch data via data sources instead of opening connections directly to the database. It base on a Primary Data Class offers the output data structure (same as a View in database) A data source can serve different purposes. You can access data sources from widgets, workflows, or even from worker sites.
public class DataSource : Entity, IIdentity
Inheritance
object ← Entity ← DataSource
Implements
IIdentity
Inherited Members
Entity.GetResourceName(), Entity.Id, Entity.Version, Entity.CreatedBy, Entity.CreatedAt, Entity.ModifiedBy, Entity.ModifiedAt, object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Extension Methods
ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<DataSource>(DataSource)
Constructors
DataSource()
public DataSource()
Properties
AllowDiskUse
public AllowDiskUse AllowDiskUse { get; set; }
Property Value
AllowDiskUse
AllowReturningCustomFields
public bool AllowReturningCustomFields { get; set; }
Property Value
AuditLogAttributeSettings
public IList<DataSourceAuditLogAttributeModel> AuditLogAttributeSettings { get; set; }
Property Value
IList<DataSourceAuditLogAttributeModel>
BuiltIn
Gets or sets a value indicating whether the data source is built-in.
public bool BuiltIn { get; set; }
Property Value
CorrelationAuditLogId
public string CorrelationAuditLogId { get; set; }
Property Value
CustomCollation
public CustomCollation CustomCollation { get; set; }
Property Value
CustomCollation
CustomScript
Gets or sets a value indicating whether the data source has a custom script.
public bool CustomScript { get; set; }
Property Value
EnableAuditLog
public bool EnableAuditLog { get; set; }
Property Value
EnforceIndexUtilizationForDataPaging
public bool EnforceIndexUtilizationForDataPaging { get; set; }
Property Value
IsAccessFromWorkerSite
Gets or sets a value indicating whether the data source can be accessed from the worker site.
public bool IsAccessFromWorkerSite { get; set; }
Property Value
IsLocked
public bool IsLocked { get; set; }
Property Value
LogAttributeSettings
public IList<DataSourceAuditLogAttributeModel> LogAttributeSettings { get; set; }
Property Value
IList<DataSourceAuditLogAttributeModel>
LogEventName
public string LogEventName { get; set; }
Property Value
Name
Gets or sets the name of the data source.
public string Name { get; set; }
Property Value
PrimaryDataClass
Gets or sets the primary data class of the data source.
public DataSourceDataClass PrimaryDataClass { get; set; }
Property Value
ProductId
Gets or sets the product ID of the data source.
public Guid ProductId { get; set; }
Property Value
ReadAccessRule
public string ReadAccessRule { get; set; }
Property Value
Script
Gets or sets the script associated with the data source.
public string Script { get; set; }
Property Value
Tags
public IList<string> Tags { get; set; }
Property Value
WorkerSiteAccessRule
Gets or sets the access rule for the worker site.
public AccessRule WorkerSiteAccessRule { get; set; }
Property Value
Methods
GetAuditLogEventName()
public string GetAuditLogEventName()
Returns
GetResourceName()
Gets the display name of the entity.
public override string GetResourceName()
Returns
The display name of the entity.