Beispiel #1
0
 public AnalysisServicesConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     Type = ProviderType.AnalysisServices;
     ConnectionStringProperties.DatabaseProperty = "Catalog";
     ConnectionStringProperties.ServerProperty   = "Data Source";
 }
        public MailConnection(TflConnection element, AbstractConnectionDependencies dependencies)
            : base(element, dependencies)
        {
            Type = ProviderType.Mail;

            var port = Port > 0 ? Port : 25;

            if (string.IsNullOrEmpty(User))
            {
                _smtpClient = new SmtpClient {
                    Port      = port,
                    EnableSsl = EnableSsl,
                    Host      = Server
                };
            }
            else
            {
                _smtpClient = new SmtpClient {
                    Port                  = port,
                    EnableSsl             = EnableSsl,
                    DeliveryMethod        = SmtpDeliveryMethod.Network,
                    UseDefaultCredentials = false,
                    Credentials           = new NetworkCredential(User, Password),
                    Host                  = Server
                };
            }
        }
 public ElasticSearchConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     Type          = ProviderType.ElasticSearch;
     IsDatabase    = true;
     TextQualifier = string.Empty;
 }
Beispiel #4
0
 public SqlServerConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     Type               = ProviderType.SqlServer;
     L                  = "[";
     R                  = "]";
     TextQualifier      = "'";
     IsDatabase         = true;
     InsertMultipleRows = true;
     Top                = true;
     NoLock             = true;
     TableVariable      = true;
     NoCount            = true;
     IndexInclude       = true;
     Views              = true;
     Schemas            = true;
     MaxDop             = true;
     TableSample        = true;
     DefaultSchema      = "dbo";
     ConnectionStringProperties.UserProperty                = "User Id";
     ConnectionStringProperties.PasswordProperty            = "Password";
     ConnectionStringProperties.DatabaseProperty            = "Database";
     ConnectionStringProperties.ServerProperty              = "Server";
     ConnectionStringProperties.TrustedProperty             = "Trusted_Connection";
     ConnectionStringProperties.PersistSecurityInfoProperty = "Persist Security Info";
 }
        public SqlServerConnection(TflConnection element, AbstractConnectionDependencies dependencies)
            : base(element, dependencies) {

            Type = ProviderType.SqlServer;
            L = "[";
            R = "]";
            TextQualifier = "'";
            IsDatabase = true;
            InsertMultipleRows = true;
            Top = true;
            NoLock = true;
            TableVariable = true;
            NoCount = true;
            IndexInclude = true;
            Views = true;
            Schemas = true;
            MaxDop = true;
            TableSample = true;
            DefaultSchema = "dbo";
            ConnectionStringProperties.UserProperty = "User Id";
            ConnectionStringProperties.PasswordProperty = "Password";
            ConnectionStringProperties.DatabaseProperty = "Database";
            ConnectionStringProperties.ServerProperty = "Server";
            ConnectionStringProperties.TrustedProperty = "Trusted_Connection";
            ConnectionStringProperties.PersistSecurityInfoProperty = "Persist Security Info";

        }
Beispiel #6
0
 public LuceneConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     Type          = ProviderType.Lucene;
     IsDatabase    = true;
     TextQualifier = string.Empty;
 }
 public SqlCeConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies) {
     Type = ProviderType.SqlCe4;
     L = "[";
     R = "]";
     IsDatabase = true;
     ConnectionStringProperties.ServerProperty = "Data Source";
     ConnectionStringProperties.PersistSecurityInfoProperty = "Persist Security Info";
 }
Beispiel #8
0
 public SqlCeConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     Type       = ProviderType.SqlCe4;
     L          = "[";
     R          = "]";
     IsDatabase = true;
     ConnectionStringProperties.ServerProperty = "Data Source";
     ConnectionStringProperties.PersistSecurityInfoProperty = "Persist Security Info";
 }
        public SolrConnection(TflConnection element, AbstractConnectionDependencies dependencies)
            : base(element, dependencies) {
            Type = ProviderType.Solr;
            IsDatabase = true;
            TextQualifier = string.Empty;
            _solrUrl = element.NormalizeUrl(DEFAULT_PORT);

            if (!element.File.Equals(string.Empty)) {
                _schemaFile = element.File;
            }

        }
Beispiel #10
0
        public SolrConnection(TflConnection element, AbstractConnectionDependencies dependencies)
            : base(element, dependencies)
        {
            Type          = ProviderType.Solr;
            IsDatabase    = true;
            TextQualifier = string.Empty;
            _solrUrl      = element.NormalizeUrl(DEFAULT_PORT);

            if (!element.File.Equals(string.Empty))
            {
                _schemaFile = element.File;
            }
        }
 public MySqlConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies) {
     Type = ProviderType.MySql;
     L = "`";
     R = "`";
     TextQualifier = "'";
     IsDatabase = true;
     Views = true;
     ConnectionStringProperties.UserProperty = "Uid";
     ConnectionStringProperties.PasswordProperty = "Pwd";
     ConnectionStringProperties.PortProperty = "Port";
     ConnectionStringProperties.DatabaseProperty = "Database";
     ConnectionStringProperties.ServerProperty = "Server";
 }
 public MySqlConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     Type          = ProviderType.MySql;
     L             = "`";
     R             = "`";
     TextQualifier = "'";
     IsDatabase    = true;
     Views         = true;
     ConnectionStringProperties.UserProperty     = "Uid";
     ConnectionStringProperties.PasswordProperty = "Pwd";
     ConnectionStringProperties.PortProperty     = "Port";
     ConnectionStringProperties.DatabaseProperty = "Database";
     ConnectionStringProperties.ServerProperty   = "Server";
 }
        /* Pooling=true;Min Pool Size=0;Max Pool Size=100;Connection Lifetime=0; */

        public PostgreSqlConnection(TflConnection element, AbstractConnectionDependencies dependencies)
            : base(element, dependencies) {
            Type = ProviderType.PostgreSql;
            L = "\"";
            R = "\"";
            TextQualifier = "'";
            IsDatabase = true;
            InsertMultipleRows = true;
            Views = true;
            Schemas = true;
            DefaultSchema = "public";
            ConnectionStringProperties.UserProperty = "User ID";
            ConnectionStringProperties.PasswordProperty = "Password";
            ConnectionStringProperties.PortProperty = "Port";
            ConnectionStringProperties.DatabaseProperty = "Database";
            ConnectionStringProperties.ServerProperty = "Host";
            NoLock = false;
        }
        /* Pooling=true;Min Pool Size=0;Max Pool Size=100;Connection Lifetime=0; */

        public PostgreSqlConnection(TflConnection element, AbstractConnectionDependencies dependencies)
            : base(element, dependencies)
        {
            Type               = ProviderType.PostgreSql;
            L                  = "\"";
            R                  = "\"";
            TextQualifier      = "'";
            IsDatabase         = true;
            InsertMultipleRows = true;
            Views              = true;
            Schemas            = true;
            DefaultSchema      = "public";
            ConnectionStringProperties.UserProperty     = "User ID";
            ConnectionStringProperties.PasswordProperty = "Password";
            ConnectionStringProperties.PortProperty     = "Port";
            ConnectionStringProperties.DatabaseProperty = "Database";
            ConnectionStringProperties.ServerProperty   = "Host";
            NoLock = false;
        }
        public MailConnection(TflConnection element, AbstractConnectionDependencies dependencies)
            : base(element, dependencies) {
            Type = ProviderType.Mail;

            var port = Port > 0 ? Port : 25;
            if (string.IsNullOrEmpty(User)) {
                _smtpClient = new SmtpClient {
                    Port = port,
                    EnableSsl = EnableSsl,
                    Host = Server
                };
            } else {
                _smtpClient = new SmtpClient {
                    Port = port,
                    EnableSsl = EnableSsl,
                    DeliveryMethod = SmtpDeliveryMethod.Network,
                    UseDefaultCredentials = false,
                    Credentials = new NetworkCredential(User, Password),
                    Host = Server
                };
            }
        }
 public ElasticSearchConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies) {
     Type = ProviderType.ElasticSearch;
     IsDatabase = true;
     TextQualifier = string.Empty;
     }
 public InternalConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     Type = ProviderType.Internal;
 }
Beispiel #18
0
 public FolderConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     Type = ProviderType.Folder;
 }
 public FolderConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies) {
     Type = ProviderType.Folder;
 }
 public ConsoleConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies) {
     Type = ProviderType.Console;
 }
 public InternalConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies) {
     Type = ProviderType.Internal;
 }
 public WebConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies) {
     _element = element;
     Type = ProviderType.Web;
 }
 public LuceneConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies) {
     Type = ProviderType.Lucene;
     IsDatabase = true;
     TextQualifier = string.Empty;
     }
Beispiel #24
0
 public ConsoleConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     Type = ProviderType.Console;
 }
Beispiel #25
0
 public LogConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     Type = ProviderType.Log;
 }
Beispiel #26
0
 public WebConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies)
 {
     _element = element;
     Type     = ProviderType.Web;
 }
 public LogConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies) {
     Type = ProviderType.Log;
 }
 public AnalysisServicesConnection(TflConnection element, AbstractConnectionDependencies dependencies)
     : base(element, dependencies) {
     Type = ProviderType.AnalysisServices;
     ConnectionStringProperties.DatabaseProperty = "Catalog";
     ConnectionStringProperties.ServerProperty = "Data Source";
 }