//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"); } }
public void SetConnection(Connector connect, DatabaseInformation datainfo) { connect.SetConnection(datainfo); }
public abstract void SetConnection(DatabaseInformation datainfo);
public void SetConnection(DatabaseInformation datainfo) { var traider = new DataTraider(); traider.SetConnection(connect_odbc, datainfo); }