Ejemplo n.º 1
0
        public static tbl_log Createtbl_log(int ID)
        {
            tbl_log tbl_log = new tbl_log();

            tbl_log.ID = ID;
            return(tbl_log);
        }
Ejemplo n.º 2
0
        public string ZinkLogTable()
        {
            string  suri    = @"http://localhost:59387/WCFOData.svc";
            Uri     muri    = new Uri(suri);
            var     context = new sendill_client.srvRefSendillEnt.SendillEntities(muri);
            tbl_log newlog  = new tbl_log();

            newlog.ID           = 99999999;
            newlog.logtimestamp = DateTime.Now;
            newlog.logtext      = "Þetta er texte frá service.";
            try
            {
                context.AddTotbl_log(newlog);
                DataServiceResponse responce = context.SaveChanges();
                return("log_tbl uppfærður.");
            }
            catch (DataServiceRequestException ex)
            {
                return("Villa kom upp við uppfærslu " + ex.ToString());
            }
        }
Ejemplo n.º 3
0
 public void AddTotbl_log(tbl_log tbl_log)
 {
     base.AddObject("tbl_log", tbl_log);
 }