// overloads to handle each type of target, and the ImportType, and ImportTypeRecord...
 /// <summary>
 /// Save or update the dataset record in the session.
 /// </summary>
 /// <param name="entity">The entity.</param>
 protected void Insert(DatasetRecord entity)
 {
     if (!Session.IsOpen)
     {
         Session = OpenSession();
     }
     Session.SaveOrUpdate(entity);
 }
 // overloads to handle each type of target, and the ImportType, and ImportTypeRecord...
 /// <summary>
 /// Inserts the specified entity.
 /// </summary>
 /// <param name="entity">The entity.</param>
 protected void Insert(DatasetRecord entity)
 {
     _session.SaveOrUpdate(entity);
 }