Esempio n. 1
0
 public static void Create(T_Follow follow)
 {
     try
     {
         using (Entities bdd = new Entities())
         {
             bdd.T_Follow.Add(follow);
             bdd.SaveChanges();
         }
     }
     catch (Exception e)
     {
         Trace.WriteLine(e.Message);
         throw;
     }
 }
Esempio n. 2
0
 public static void Create(T_Follow follow)
 {
     try
     {
         using (Entities bdd = new Entities())
         {
             bdd.T_Follow.Add(follow);
             bdd.SaveChanges();
         }
     }
     catch (Exception e)
     {
         Trace.WriteLine(e.Message);
         throw;
     }
 }
Esempio n. 3
0
 public static void Update(long followId, T_Follow fllw)
 {
     try
     {
         using (Entities bdd = new Entities())
         {
             T_Follow follow = Get(followId);
             follow = fllw;
             bdd.SaveChanges();
         }
     }
     catch (Exception e)
     {
         Trace.WriteLine(e.Message);
         throw;
     }
 }
Esempio n. 4
0
 public static void Update(long followId, T_Follow fllw)
 {
     try
     {
         using (Entities bdd = new Entities())
         {
             T_Follow follow = Get(followId);
             follow = fllw;
             bdd.SaveChanges();
         }
     }
     catch (Exception e)
     {
         Trace.WriteLine(e.Message);
         throw;
     }
 }