Exemplo n.º 1
0
 public static void Create(T_Style style)
 {
     try
     {
         using (Entities bdd = new Entities())
         {
             bdd.T_Style.Add(style);
             bdd.SaveChanges();
         }
     }
     catch (Exception e)
     {
         Trace.WriteLine(e.Message);
         throw;
     }
 }
Exemplo n.º 2
0
 public static void Create(T_Style style)
 {
     try
     {
         using (Entities bdd = new Entities())
         {
             bdd.T_Style.Add(style);
             bdd.SaveChanges();
         }
     }
     catch (Exception e)
     {
         Trace.WriteLine(e.Message);
         throw;
     }
 }
Exemplo n.º 3
0
 public static void Update(long styleId, T_Style stl)
 {
     try
     {
         using (Entities bdd = new Entities())
         {
             T_Style style = Get(styleId);
             style = stl;
             bdd.SaveChanges();
         }
     }
     catch (Exception e)
     {
         Trace.WriteLine(e.Message);
         throw;
     }
 }
Exemplo n.º 4
0
 public static void Update(long styleId, T_Style stl)
 {
     try
     {
         using (Entities bdd = new Entities())
         {
             T_Style style = Get(styleId);
             style = stl;
             bdd.SaveChanges();
         }
     }
     catch (Exception e)
     {
         Trace.WriteLine(e.Message);
         throw;
     }
 }