/// <summary>
 /// Basic Update Method
 /// </summary>
 /// <param name="entity"></param>
 /// <param name="original_entity"></param>
 public void UpdateFormationHistory(FormationHistory entity, FormationHistory original_entity)
 {
     InfoControlDataContext db = DataManager.CreateContext<InfoControlDataContext>();
     db.FormationHistories.Attach(original_entity);
     original_entity.CopyPropertiesFrom(entity);
     db.SubmitChanges();
 }
 /// <summary>
 /// Basic Delete Method
 /// </summary>
 /// <param name="entity"></param>
 public void DeleteFormationHistory(FormationHistory entity)
 {
     InfoControlDataContext db = DataManager.CreateContext<InfoControlDataContext>();
     db.FormationHistories.Attach(entity);
     db.FormationHistories.Remove(entity);
     db.SubmitChanges();
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Basic Insert Method
        /// </summary>
        /// <param name="entity"></param>
        public void InsertFormationHistory(FormationHistory entity)
        {
            InfoControlDataContext db = DataManager.CreateContext <InfoControlDataContext>();

            db.FormationHistories.Add(entity);
            db.SubmitChanges();
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Basic Delete Method
        /// </summary>
        /// <param name="entity"></param>
        public void DeleteFormationHistory(FormationHistory entity)
        {
            InfoControlDataContext db = DataManager.CreateContext <InfoControlDataContext>();

            db.FormationHistories.Attach(entity);
            db.FormationHistories.Remove(entity);
            db.SubmitChanges();
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Basic Update Method
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="original_entity"></param>
        public void UpdateFormationHistory(FormationHistory entity, FormationHistory original_entity)
        {
            InfoControlDataContext db = DataManager.CreateContext <InfoControlDataContext>();

            db.FormationHistories.Attach(original_entity);
            original_entity.CopyPropertiesFrom(entity);
            db.SubmitChanges();
        }
 /// <summary>
 /// Basic Insert Method
 /// </summary>
 /// <param name="entity"></param>
 public void InsertFormationHistory(FormationHistory entity)
 {
     InfoControlDataContext db = DataManager.CreateContext<InfoControlDataContext>();
     db.FormationHistories.Add(entity);
     db.SubmitChanges();
 }
 public async Task AddAsync(FormationHistory formationHistory)
 => await Collection.InsertOneAsync(formationHistory);