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); } }
public static void Insert(IDalSession session, Country obj) { session.Insert(obj); }
public static void Insert(IDalSession session, IList list) { session.Insert(list); }
// Return an boolean. public static bool Insert(IDalSession session, IReportLetter obj) { return session.Insert(obj); }
public static void Insert(IDalSession session, IAccountHolder obj) { session.Insert(obj); }
/// <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); }
/// <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); }
public static void Insert(IDalSession session, ICounterAccount obj) { session.Insert(obj); }
public static bool Insert(IDalSession session, IRemisier obj) { return session.Insert(obj); }
public static void Insert(IDalSession session, INavCalculation obj) { session.Insert(obj); ; }
/// <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); }
public static void Insert(IDalSession session, IReport obj) { session.Insert(obj); }