Search Results for

    Show / Hide Table of Contents

    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
    IBaseEntity.GetLabel(string)
    IBaseEntity.SetLabel(string, string)
    IBaseEntity.SetSilentLabel(string, string)
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.AlgorithmStepID
    IBaseEntity.SafeID
    IEquatable<IBaseEntity>.Equals(IBaseEntity)
    INotifyPropertyChanged.PropertyChanged
    INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(object)
    ICloneableAsync.CopyFromSource(object)
    ICanTrackProperties.HasTrackedPropertyChanged(string)
    ICanTrackProperties.OriginalTrackedPropertyValue(string)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(string)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    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

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    IDataSourceType
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.