Exemplo n.º 1
0
 private void saveMutations(IDalSession session, ref List<IValuationMutation> mutationsToSave, ref IValuationCashMutation[] cashMutationsToSave)
 {
     if (mutationsToSave != null && mutationsToSave.Count > 0 && cashMutationsToSave != null && cashMutationsToSave.Length > 0)
     {
         object[] mutations = new object[mutationsToSave.Count + cashMutationsToSave.Length];
         mutationsToSave.ToArray().CopyTo(mutations, 0);
         cashMutationsToSave.CopyTo(mutations, mutationsToSave.Count);
         session.Insert(mutations);
     }
     else if (mutationsToSave != null && mutationsToSave.Count > 0)
     {
         session.Insert(mutationsToSave);
     }
     else if (cashMutationsToSave != null && cashMutationsToSave.Length > 0)
     {
         session.Insert(cashMutationsToSave);
     }
 }
Exemplo n.º 2
0
 public static void Insert(IDalSession session, Country obj)
 {
     session.Insert(obj);
 }
Exemplo n.º 3
0
 public static void Insert(IDalSession session, IList list)
 {
     session.Insert(list);
 }
Exemplo n.º 4
0
 // Return an boolean.
 public static bool Insert(IDalSession session, IReportLetter obj)
 {
     return session.Insert(obj);
 }
Exemplo n.º 5
0
 public static void Insert(IDalSession session, IAccountHolder obj)
 {
     session.Insert(obj);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Creates a new object in the database
 /// </summary>
 /// <param name="session">An instance of the Data Access Library <see cref="T:B4F.TotalGiro.DAL.NHSession">NHSession</see> class</param>
 /// <param name="obj">Object of type Login</param>
 public static void Insert(IDalSession session, ILogin obj)
 {
     session.Insert(obj);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Inserts a <b>Contact</b> object into the database.
 /// </summary>
 /// <param name="session">An instance of the Data Access Library (see class <see cref="B4F.TotalGiro.DAL.NHSession">NHSession</see>).</param>
 /// <param name="obj">The <b>Contact</b> object to insert into the database.</param>
 public static bool Insert(IDalSession session, IContact obj)
 {
     return session.Insert(obj);
 }
Exemplo n.º 8
0
 public static void Insert(IDalSession session, ICounterAccount obj)
 {
     session.Insert(obj);
 }
Exemplo n.º 9
0
 public static bool Insert(IDalSession session, IRemisier obj)
 {
     return session.Insert(obj);
 }
Exemplo n.º 10
0
 public static void Insert(IDalSession session, INavCalculation obj)
 {
     session.Insert(obj); ;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Makes newly created FSExportFile persistent.
 /// </summary>
 /// <param name="DataSession">data session object</param>
 /// <param name="obj">newly created object</param>
 public static void Insert(IDalSession DataSession, FSExportFile obj)
 {
     DataSession.Insert(obj);
 }
Exemplo n.º 12
0
 public static void Insert(IDalSession session, IReport obj)
 {
     session.Insert(obj);
 }