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://help.lemonedge.com/data-sources/ for more information
Inherited Members
Namespace: LemonEdge.API.Entities.DataIntegration
Assembly: LemonEdge.API.dll
Syntax
[EntityDefinition(EntityID.DataSourceIDs, "dbo.LT_DataSourceIDs", "DataSourceID", IsStandingDataEntity = false)]
[DefaultEntityIcon(ImageType.NewLink)]
[EntityIndex(Name = "ItemSource", ColumnNames = new string[] { "DataSourceTypeID", "EntityID" }, IndexOrder = new IndexOrder[] { IndexOrder.Ascending, IndexOrder.Ascending }, IsClustered = false, IsUnique = true)]
[EntityIndex(Name = "SourceItem", ColumnNames = new string[] { "DataSourceTypeID", "SourceID", "EntityTypeID" }, IndexOrder = new IndexOrder[] { IndexOrder.Ascending, IndexOrder.Ascending, IndexOrder.Ascending }, IsClustered = false, IsUnique = true)]
[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, "Data Source Type", "Data Sources", DeleteWithRelationship = true, PartOfParentSet = false, LinkToItemInSet = false)]
[RequiredNoDefaultIDValidation]
[EntityKeyProperty]
Guid DataSourceTypeID { get; set; }
Property Value
Type | Description |
---|---|
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)]
[RequiredNoDefaultIDValidation]
[EntityLinkToAnyParentRelationship("EntityTypeID", SingleJoinType.One, "Data Sources", false, new Type[] { typeof(IVennSetQueryableItem), typeof(IDataSource), typeof(IDataSourceType), typeof(ISQLWrapper), typeof(ISQLTypeWrapper), typeof(IDatasetQueryableItem) })]
Guid EntityID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
EntityTypeID
The type of entity this source id is being stored against
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false, IsEntityTypeLink = true)]
[RequiredNoDefaultIDValidation]
[EntityKeyProperty]
Guid EntityTypeID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
SourceID
The unique key from a third party data source that this record is associated with
Declaration
[EntityProperty(SQLType.NVarChar, 500, false)]
[EntityKeyProperty]
[Required]
string SourceID { get; set; }
Property Value
Type | Description |
---|---|
string |