public static YDataSource GetTypedDatSource(YDataSource dataSource) { switch (dataSource.DataSourceType) { case YDataSourceType.AzureBlobStorage: return(new YDataSourceAzureBlobStorage(dataSource)); case YDataSourceType.AzureBlobFS: return(new YDataSourceAzureBlobFS(dataSource)); case YDataSourceType.AzureSqlDatabase: return(new YDataSourceAzureSqlDatabase(dataSource)); case YDataSourceType.AzureSqlDW: return(new YDataSourceAzureSqlDW(dataSource)); case YDataSourceType.AzureDatabricks: return(new YDataSourceAzureDatabricks(dataSource)); case YDataSourceType.CosmosDb: return(new YDataSourceCosmosDb(dataSource)); case YDataSourceType.None: default: return(dataSource); } }
public YDataSource(YDataSource other) { this.Name = other.Name; this.Type = other.Type; this.DataSourceType = other.DataSourceType; this.Description = other.Description; this.AdditionalData = other.AdditionalData; if (this.AdditionalData?["properties"] is JObject props) { this.OnDeserialized(props); } }
public YDataSourceAzureBlob(YDataSource dataSource) : base(dataSource) { }
public YDataSourceAzureBlobStorage(YDataSource dataSource) : base(dataSource) => DataSourceType = YDataSourceType.AzureBlobStorage;
public YDataSourceAzureSql(YDataSource dataSource) : base(dataSource) { }