Exemplo n.º 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Parameters(QueryBuilder pQuery, Model pModel)
        {
            _query = pQuery;
            _model = pModel;
            _settings = pModel.Settings;
            _source = pModel.DataSource;

            Data = new Dictionary<string, object>();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public SchemaReader(string pAddress, string pUsername, string pPassword)
 {
     DataSources.DataSource.DataSources.Instance.Creators.Register("SCHEMA", ()=>new MySqlDataSource(
         pAddress,
         "INFORMATION_SCHEMA",
         pUsername,
         pPassword
         ));
     DataSources.DataSource.DataSources.Instance.setDefault("SCHEMA");
     _dataSource = DataSources.DataSource.DataSources.Instance.Create("SCHEMA");
 }
Exemplo n.º 3
0
        /// <summary>
        /// Constructor
        /// </summary>
        protected JobContext([NotNull] PluginSettings pPluginSettings,
                             [CanBeNull] iDataSource pDataSource,
                             [NotNull] iEventFactory pEventFactory)
        {
            if (pPluginSettings == null)
            {
                throw new ArgumentNullException("pPluginSettings");
            }
            if (pEventFactory == null)
            {
                throw new ArgumentNullException("pEventFactory");
            }

            Source = pDataSource;
            PluginSettings = pPluginSettings;
            _eventFactory = pEventFactory;

            _eventRecorder = null;
        }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public Column(iDataSource pSource)
     : base(new ModelOptions { Table = "COLUMNS" }, pSource)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 public Audit(iDataSource pSource)
     : base(pSource)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// Constructor
 /// </summary>
 public Table(iDataSource pSource)
     : base(new ModelOptions {Table = "TABLES"}, pSource)
 {
 }