예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public YDataSourceAzureBlob(YDataSource dataSource) : base(dataSource)
 {
 }
예제 #4
0
 public YDataSourceAzureBlobStorage(YDataSource dataSource) : base(dataSource)
     => DataSourceType = YDataSourceType.AzureBlobStorage;
예제 #5
0
 public YDataSourceAzureSql(YDataSource dataSource) : base(dataSource)
 {
 }