/// <summary>
 /// Add AccountDataRecordExport to database
 /// </summary>
 /// <param name="instance">AccountDataRecordExport instance</param>
 /// <param name="saveAfterInsert">Save database after insertion</param>
 /// <param name="waitUntilSaving">Wait until saving</param>
 public void AccountDataRecordExportAdd(AccountDataRecordExport instance, bool saveAfterInsert = true, bool waitUntilSaving = true)
 {
     AccountDataRecordExportAdd(new AccountDataRecordExport[] { instance }, saveAfterInsert, waitUntilSaving);
 }
 /// <summary>
 /// Remove AccountDataRecordExport from database
 /// </summary>
 /// <param name="instance">AccountDataRecordExport instance</param>
 /// <param name="saveAfterRemove">Save database after removing</param>
 /// <param name="waitUntilSaving">Wait until saving</param>
 public void AccountDataRecordExportRemove(AccountDataRecordExport instance, bool saveAfterRemove = true, bool waitUntilSaving = true)
 {
     AccountDataRecordExportRemove(new AccountDataRecordExport[] { instance }, saveAfterRemove, waitUntilSaving);
 }
 /// <summary>
 /// Create/Get new AccountDataRecordExport instance without any link to database
 /// </summary>
 /// <returns>AccountDataRecordExport instance</returns>
 public AccountDataRecordExport AccountDataRecordExportNew(AccountDataRecord accountDataRecord = null, File file = null, Host host = null)
 {
     try
     {
         var dt = DateTime.UtcNow;
         var res = new AccountDataRecordExport()
         {
             ExportDate = DateTime.UtcNow,
             AccountDataRecord = accountDataRecord,
             File = file,
             Host = host
         };
         if (accountDataRecord != null)
             accountDataRecord.ExportInfo.Add(res);
         return res;
     }
     catch(Exception ex)
     {
         Helpers.Log.Add(ex, string.Format("Repository.AccountDataRecordExportNew()"));
         throw;
     }
 }