Esempio n. 1
0
 /// <summary>
 /// Add AccountDictionaryExclude to database
 /// </summary>
 /// <param name="instance">AccountDictionaryExclude instance</param>
 /// <param name="accountDictionary">AccountDictionary instance for instance</param>
 /// <param name="saveAfterInsert">Save database after insertion</param>
 /// <param name="waitUntilSaving">Wait until saving</param>
 public void AccountDictionaryExcludeAdd(AccountDictionaryExclude instance, AccountDictionary accountDictionary, bool saveAfterInsert = true, bool waitUntilSaving = true)
 {
     AccountDictionaryExcludeAdd(new AccountDictionaryExclude[] { instance }, accountDictionary, saveAfterInsert, waitUntilSaving);
 }
Esempio n. 2
0
 /// <summary>
 /// Remove AccountDictionaryExclude from database
 /// </summary>
 /// <param name="instance">AccountDictionaryExclude instance</param>
 /// <param name="saveAfterRemove">Save database after removing</param>
 /// <param name="waitUntilSaving">Wait until saving</param>
 public void AccountDictionaryExcludeRemove(AccountDictionaryExclude instance, bool saveAfterRemove = true, bool waitUntilSaving = true)
 {
     AccountDictionaryExcludeRemove(new AccountDictionaryExclude[] { instance }, saveAfterRemove, waitUntilSaving);
 }
Esempio n. 3
0
 /// <summary>
 /// Create/Get new AccountDictionaryExclude instance without any link to database
 /// </summary>
 /// <returns>AccountDictionaryExclude instance</returns>
 public AccountDictionaryExclude AccountDictionaryExcludeNew(AccountDictionary accountDictionary = null, string exclude = null)
 {
     try
     {
         var res = new AccountDictionaryExclude();
         if (exclude != null)
             res.Exclude = exclude;
         if (accountDictionary != null)
             accountDictionary.Excludes.Add(res);
         return res;
     }
     catch(Exception ex)
     {
         Helpers.Log.Add(ex, string.Format("Repository.AccountDictionaryExcludeNew()"));
         throw;
     }
 }