示例#1
0
 /// <summary>
 /// Inserts a <b>CommCalc</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>CommCalc</b> object to insert into the database.</param>
 public static void Insert(IDalSession session, ICommCalc obj)
 {
     InternalEmployeeLogin emp = LoginMapper.GetCurrentLogin(session) as InternalEmployeeLogin;
     obj.AssetManager = (IAssetManager) emp.Employer;
     session.InsertOrUpdate(obj);
 }
示例#2
0
 /// <summary>
 /// Deletes a <b>CommCalc</b> object from 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>CommCalc</b> object to delete from the database.</param>
 public static void Delete(IDalSession session, ICommCalc obj)
 {
     session.Delete(obj);
 }