Exemple #1
0
 public static void InsertNav(Nav entity)
 {
     entity.VisitTime = DateTime.Now;
     using (NavShareEntities db = new NavShareEntities())
     {
         db.Nav.Add(entity);
         db.SaveChanges();
     }
 }
Exemple #2
0
 public static void InsertShare(Share entity)
 {
     entity.ShareTime = DateTime.Now;
     using (NavShareEntities db = new NavShareEntities())
     {
         db.Share.Add(entity);
         db.SaveChanges();
     }
 }