Exemplo n.º 1
0
 public MyEstRevCreateConfiguration(int estRevID)
 {
     try
     {
         var config    = _db.EST_Cost_Configuration.Find(0);
         var newConfig = new EST_Cost_Configuration();
         MyCommon.MyReflection.Copy(config, newConfig);
         newConfig.EstRevID = estRevID;
         _db.EST_Cost_Configuration.Add(newConfig);
         _db.SaveChanges();
     }
     catch (DbEntityValidationException dbEx)
     {
         var s = dbEx.Message;
         throw;
     }
 }
Exemplo n.º 2
0
 public MyEstCostConfiguration(int estRevID)
 {
     Value = _db.EST_Cost_Configuration.OrderBy(x => x.ConfigID).First(x => x.EstRevID == estRevID);
 }
 public MyEstCostConfigurationPpp()
 {
     Value = _db.EST_Cost_Configuration.Find(EstCostConfigurationPppRowID);
 }