Interface IDataSource
The system entity for a DataSource, which is used for ensuring any entity in the system can also have associated 3rd party data source ids
See https://web.lemonedge.com/help/data-sources/ for more information
Inherited Members
System.IEquatable<LemonEdge.API.Core.IBaseEntity>.Equals(LemonEdge.API.Core.IBaseEntity)
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
System.ComponentModel.INotifyPropertyChanging.PropertyChanging
Namespace: LemonEdge.API.Entities
Assembly: API.dll
Syntax
[EntityDefinition(EntityID.DataSourceIDs, "dbo.LT_DataSourceIDs", "DataSourceID", IsStandingDataEntity = false)]
[DefaultEntityIcon(ImageType.NewLink)]
[DataSourceUnique]
[MultipleUnique(new string[]{"EntityID", "DataSourceTypeID"}, AllowNullOrEmpty = false)]
public interface IDataSource : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties
Properties
DataSourceTypeID
Links to IDataSourceType. The data source type that you are storing an associated unique external key for
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityRelationship(EntityID.DataSourceTypes, "ID", SingleJoinType.One, "DataSourceIDs", "DataSourceTypes", DeleteWithRelationship = true, PartOfParentSet = false, LinkToItemInSet = false)]
Guid DataSourceTypeID { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
EntityID
The unique global id of the entity (of type EntityTypeID) that this source id is being stored against
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityLinkToAnyParentRelationship("EntityID", SingleJoinType.One, "Data Sources", false, new Type[]{typeof(IDataSource), typeof(IDataSourceType)})]
Guid EntityID { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
EntityTypeID
The type of entity this source id is being stored against
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false, IsEntityTypeLink = true)]
Guid EntityTypeID { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
SourceID
The unique key from a third party data source that this record is associated with
Declaration
[EntityProperty(SQLType.NVarChar, (short)500, false)]
[Required]
string SourceID { get; set; }
Property Value
Type | Description |
---|---|
System.String |