Beispiel #1
0
 public void Log(Guid linkId, string Ip, string Referer, string Agent, DateTime Date)
 {
     using (var dc = new LinkKSDataContext())
     {
         var item = new LINK_LOG();
         item.LOG_ID   = Guid.NewGuid();
         item.IP       = Ip;
         item.LINK_ID  = linkId;
         item.REFERRER = Referer;
         item.AGENT    = Agent;
         item.LOG_DATE = DateTime.Now;
         dc.LINK_LOGs.InsertOnSubmit(item);
         dc.SubmitChanges();
     }
 }
 private void detach_LINK_LOGs(LINK_LOG entity)
 {
     this.SendPropertyChanging();
     entity.LINK = null;
 }
 private void attach_LINK_LOGs(LINK_LOG entity)
 {
     this.SendPropertyChanging();
     entity.LINK = this;
 }
 partial void DeleteLINK_LOG(LINK_LOG instance);
 partial void UpdateLINK_LOG(LINK_LOG instance);
 partial void InsertLINK_LOG(LINK_LOG instance);