Class DataSourceBase

Base class for data source.

Inheritance
object
DataSourceBase
Implements
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsBaseDataSources
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse

public abstract class DataSourceBase : IDataSource, IResource

Properties

CreatedBy

Gets the id of the user who created this resource. null if it has not been created.

Declaration
RequestResponse

public long? CreatedBy { get; set; }
Property Value
TypeDescription
long

CreatedOn

Gets the date on which this resource was created. null if it has not been created.

Declaration
RequestResponse

public DateTime? CreatedOn { get; set; }
Property Value
TypeDescription
DateTime

IsSystemOwned

Gets or sets a value indicating whether the datasource is editable. false (default) allows the datasource to be editable, false locks the datasource preventing any further modifications.

Declaration
RequestResponse

public bool IsSystemOwned { get; set; }
Property Value
TypeDescription
bool

Labels

Gets optional translation(s) of the canonical name.

Declaration
RequestResponse

public IDictionary<CultureInfo, string> Labels { get; protected set; }
Property Value
TypeDescription
IDictionary<, >CultureInfostring

ModifiedBy

Gets the id of the user who modified this resource. null if it has not been created.

Declaration
RequestResponse

public long? ModifiedBy { get; set; }
Property Value
TypeDescription
long

ModifiedOn

Gets the date on which this resource was modified. null if it has not been created.

Declaration
RequestResponse

public DateTime? ModifiedOn { get; set; }
Property Value
TypeDescription
DateTime

Name

Gets the name of the datasource. Can only contain letters, numbers, dots or underscores. Because it is used as an identifier, this also needs to be unique.

Declaration
RequestResponse

public string Name { get; set; }
Property Value
TypeDescription
string

Type

Gets the type of the datasource.

Declaration
RequestResponse

public abstract DataSourceType Type { get; }
Property Value
TypeDescription
DataSourceType

Methods

GetDataSourceValues()

Gets a list of the data source values. Use the properties on IFlatDataSource or IHierarchicalDataSource. to make changes.

Declaration
RequestResponse

public abstract IList<IDataSourceValue> GetDataSourceValues()
Returns
TypeDescription
IList<>IDataSourceValue

The list of IDataSourceValue.

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,