Table of Contents

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

objectEntityDataSource

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

bool

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

bool

CorrelationAuditLogId

public string CorrelationAuditLogId { get; set; }

Property Value

string

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

bool

EnableAuditLog

public bool EnableAuditLog { get; set; }

Property Value

bool

EnforceIndexUtilizationForDataPaging

public bool EnforceIndexUtilizationForDataPaging { get; set; }

Property Value

bool

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

bool

IsLocked

public bool IsLocked { get; set; }

Property Value

bool

LogAttributeSettings

public IList<DataSourceAuditLogAttributeModel> LogAttributeSettings { get; set; }

Property Value

IList<DataSourceAuditLogAttributeModel>

LogEventName

public string LogEventName { get; set; }

Property Value

string

Name

Gets or sets the name of the data source.

public string Name { get; set; }

Property Value

string

PrimaryDataClass

Gets or sets the primary data class of the data source.

public DataSourceDataClass PrimaryDataClass { get; set; }

Property Value

DataSourceDataClass

ProductId

Gets or sets the product ID of the data source.

public Guid ProductId { get; set; }

Property Value

Guid

ReadAccessRule

public string ReadAccessRule { get; set; }

Property Value

string

Script

Gets or sets the script associated with the data source.

public string Script { get; set; }

Property Value

string

Tags

public IList<string> Tags { get; set; }

Property Value

IList<string>

WorkerSiteAccessRule

Gets or sets the access rule for the worker site.

public AccessRule WorkerSiteAccessRule { get; set; }

Property Value

AccessRule

Methods

GetAuditLogEventName()

public string GetAuditLogEventName()

Returns

string

GetResourceName()

Gets the display name of the entity.

public override string GetResourceName()

Returns

string

The display name of the entity.