public InsertShow(SqlConnection connection, RSSListener.Data.Model.Show show) { if (connection == null) { throw new ArgumentNullException("connection"); } else if (connection.State != System.Data.ConnectionState.Open) { throw new Exception("connection's state is not open"); } else { conn = connection; this.show = show; } }
public void InsertShow(RSSListener.Data.Model.Show s) { RSSListener.SQL.Inserts.InsertShow iss = new Inserts.InsertShow(connection, s); iss.writeInformation(); }