コード例 #1
0
        //OdbcCommand OdbcCommand = null;

        public override void SetConnection(DatabaseInformation datainfo)
        {
            if (datainfo.Database != null &&
                datainfo.Password != null &&
                datainfo.Port != null &&
                datainfo.Server != null &&
                datainfo.Username != null)
            {
                OdbcConnection = new OdbcConnection();
                OdbcConnection.ConnectionString = "Driver={MySQL ODBC 5.2 UNICODE Driver};Server=db4free.net;Port=3306;Database=acepasag;User=acepasag;Password=acepasag;";
            }
            else
            {
                throw new Exception("Invalid Database Information");
            }
        }
コード例 #2
0
 public void SetConnection(Connector connect, DatabaseInformation datainfo)
 {
     connect.SetConnection(datainfo);
 }
コード例 #3
0
 public abstract void SetConnection(DatabaseInformation datainfo);
コード例 #4
0
        public void SetConnection(DatabaseInformation datainfo)
        {
            var traider = new DataTraider();

            traider.SetConnection(connect_odbc, datainfo);
        }