public void SaveGssItem(OnTheSpot.Models.GSS gss) { logger.Info(string.Format("SaveItem {0}", gss.ID)); OnTheSpot.EFStuff.GSS dbItem = new OnTheSpot.EFStuff.GSS() { barcode = gss.BarCode, bin = gss.bin, time = gss.CreationDate, temp3 = "temp" }; db.GSSes.AddObject(dbItem); db.SaveChanges(); }
/// <summary> /// Create a new GSS object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="barcode">Initial value of the barcode property.</param> /// <param name="bin">Initial value of the bin property.</param> /// <param name="time">Initial value of the time property.</param> public static GSS CreateGSS(global::System.Int32 id, global::System.String barcode, global::System.Int32 bin, global::System.DateTime time) { GSS gSS = new GSS(); gSS.id = id; gSS.barcode = barcode; gSS.bin = bin; gSS.time = time; return(gSS); }
public void SaveGssItem(OnTheSpot.Models.GSS gss) { logger.Info(string.Format("SaveItem {0}", gss.ID)); OnTheSpot.EFStuff.GSS dbItem = new OnTheSpot.EFStuff.GSS() { barcode = gss.BarCode, bin = gss.bin, time = gss.CreationDate,temp3 = "temp"}; db.GSSes.AddObject(dbItem); db.SaveChanges(); }
/// <summary> /// Deprecated Method for adding a new object to the GSSes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToGSSes(GSS gSS) { base.AddObject("GSSes", gSS); }
/// <summary> /// Create a new GSS object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="barcode">Initial value of the barcode property.</param> /// <param name="bin">Initial value of the bin property.</param> /// <param name="time">Initial value of the time property.</param> public static GSS CreateGSS(global::System.Int32 id, global::System.String barcode, global::System.Int32 bin, global::System.DateTime time) { GSS gSS = new GSS(); gSS.id = id; gSS.barcode = barcode; gSS.bin = bin; gSS.time = time; return gSS; }