/// <summary> /// Initializes a new instance of the <see cref="SqlServerDataModelProvider"/> class. /// </summary> /// <param name="rootModel">The root data model.</param> /// <param name="dsResolver">The data structure resolver.</param> /// <param name="connectionString">The TSQL Server connection string.</param> /// <param name="mapper">The environment names mapper.</param> public SqlServerDataModelProvider(IDataModelProvider rootModel, DataStructureResolver dsResolver, string connectionString, IEnvironmentMapper mapper) : base(rootModel) { this._dsResolver = dsResolver; this._connStr = connectionString; this._mapper = mapper; }
/// <summary> /// Initializes a new instance of the <see cref="SdmxDataModelProvider"/> class. /// </summary> /// <param name="rootModel">The root data model.</param> /// <param name="namespaceName">The namespace name.</param> private SdmxDataModelProvider(IDataModelProvider rootModel, string namespaceName) : base(rootModel) { this.Namespace = namespaceName; this._structureParsingManager = new StructureParsingManager(); this._dataLocationFactory = new ReadableDataLocationFactory(); }
/// <summary> /// Initializes a new instance of the <see cref="SdmxDataModelProvider"/> class. /// </summary> /// <param name="rootModel">The root data model.</param> /// <param name="namespaceName">The namespace name.</param> /// <param name="strUrl">The URL path to a SMDX file.</param> public SdmxDataModelProvider(IDataModelProvider rootModel, string namespaceName, string strUrl) : this(rootModel, namespaceName) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(strUrl); HttpClient.DefaultProxy.Credentials = CredentialCache.DefaultNetworkCredentials; request.Method = "GET"; request.Accept = "application/xml"; WebResponse response = request.GetResponse(); this._readableDataLocation = this._dataLocationFactory.GetReadableDataLocation(response.GetResponseStream()); }
/// <summary> /// Initializes a new instance of the <see cref="DataModelProviderBase"/> class. /// </summary> /// <param name="rootModel">The root data model.</param> public DataModelProviderBase(IDataModelProvider rootModel) { this._rootModel = rootModel; }
/// <summary> /// Initializes a new instance of the <see cref="SdmxDataModelProvider"/> class. /// </summary> /// <param name="rootModel">The root data model.</param> /// <param name="namespaceName">The namespace name.</param> /// <param name="bytes">The SDMX loaded file as a byte array.</param> public SdmxDataModelProvider(IDataModelProvider rootModel, string namespaceName, byte[] bytes) : this(rootModel, namespaceName) { this._readableDataLocation = this._dataLocationFactory.GetReadableDataLocation(bytes); }
/// <summary> /// Initializes a new instance of the <see cref="SdmxDataModelProvider"/> class. /// </summary> /// <param name="rootModel">The root data model.</param> /// <param name="namespaceName">The namespace name.</param> /// <param name="structureUri">The SDMX Uri object.</param> public SdmxDataModelProvider(IDataModelProvider rootModel, string namespaceName, Uri structureUri) : this(rootModel, namespaceName) { this._readableDataLocation = this._dataLocationFactory.GetReadableDataLocation(structureUri); }
/// <summary> /// Initializes a new instance of the <see cref="DictionaryDataModelProvider"/> class. /// </summary> /// <param name="rootModel">The root data model.</param> /// <param name="namespaceName">The namespace name.</param> /// <param name="dataStructures">The dictionary of structures.</param> public DictionaryDataModelProvider(IDataModelProvider rootModel, string namespaceName, Dictionary <string, IDataStructure> dataStructures) : base(rootModel) { this.Namespace = namespaceName; this.dataStructures = dataStructures; }
/// <summary> /// Initialises a new instance of the <see cref="GetOperator"/> class. /// </summary> public GetOperator(IDataModelProvider dataModel) { this._dataModel = dataModel; }
/// <summary> /// Initializes a new instance of the <see cref="TypeInferenceModifier"/> class. /// </summary> /// <param name="opResolver">The operator resolver.</param> /// <param name="dataModel">The data model.</param> public TypeInferenceModifier(OperatorResolver opResolver, IDataModelProvider dataModel) { this._opResolver = opResolver; this._dataModel = dataModel; }
/// <summary> /// Initializes a new instance of the <see cref="JsonDataModelProvider"/> class. /// </summary> /// <param name="rootModel">The root data model.</param> /// <param name="jsonFilePath">The JSON file path/url.</param> public JsonDataModelProvider(IDataModelProvider rootModel, string jsonFilePath) : this(rootModel) { this.LoadData(jsonFilePath); }
private JsonDataModelProvider(IDataModelProvider rootModel = null) : base(rootModel) { this.dataStructures = new Dictionary <string, IDataStructure>(); }
protected virtual object CreateDataProvider(Type type, EIMDbContext context) { IDataModelProvider dataProvider = Activator.CreateInstance(type, context) as IDataModelProvider; return(dataProvider); }