示例#1
0
 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;
     }
 }
示例#2
0
 public void InsertShow(RSSListener.Data.Model.Show s)
 {
     RSSListener.SQL.Inserts.InsertShow iss = new Inserts.InsertShow(connection, s);
     iss.writeInformation();
 }