TvDatabase.TvBusinessLayer.RemoveAllPrograms C# (CSharp) Method

RemoveAllPrograms() public method

public RemoveAllPrograms ( int idChannel ) : void
idChannel int
return void
    public void RemoveAllPrograms(int idChannel)
    {
      SqlBuilder sb = new SqlBuilder(StatementType.Delete, typeof (Program));
      sb.AddConstraint(Operator.Equals, "idChannel", idChannel);
      SqlStatement stmt = sb.GetStatement(true);
      ObjectFactory.GetCollection<Program>(stmt.Execute());
    }
TvBusinessLayer