TvDatabase.TvBusinessLayer.InsertPrograms C# (CSharp) Method

InsertPrograms() public method

Batch inserts programs - intended for faster EPG import. You must make sure before that there are no duplicates (e.g. delete all program data of the current channel). Also you MUST provide a true copy of "aProgramList". If you update it's reference in your own code the values will get overwritten (possibly before they are written to disk)!
public InsertPrograms ( List aProgramList, ThreadPriority aThreadPriority ) : int
aProgramList List A list of persistable gentle.NET Program objects mapping to the Programs table
aThreadPriority ThreadPriority Use "Lowest" for Background imports allowing LiveTV, AboveNormal for full speed
return int
    public int InsertPrograms(List<Program> aProgramList, ThreadPriority aThreadPriority)
    {
      return InsertPrograms(aProgramList, DeleteBeforeImportOption.None, aThreadPriority);
    }

Same methods

TvBusinessLayer::InsertPrograms ( List aProgramList, DeleteBeforeImportOption progamsToDelete, ThreadPriority aThreadPriority ) : int
TvBusinessLayer