/// <summary> /// Create a new QCSInfo object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="heatSeal">Initial value of the HeatSeal property.</param> /// <param name="bin">Initial value of the Bin property.</param> /// <param name="time">Initial value of the Time property.</param> public static QCSInfo CreateQCSInfo(global::System.Int32 id, global::System.String heatSeal, global::System.String bin, global::System.DateTime time) { QCSInfo qCSInfo = new QCSInfo(); qCSInfo.id = id; qCSInfo.HeatSeal = heatSeal; qCSInfo.Bin = bin; qCSInfo.Time = time; return(qCSInfo); }
public string SaveQCS(string heatseal, string location) { OnTheSpot.EFStuff.QCSInfo dbItem = new OnTheSpot.EFStuff.QCSInfo() { HeatSeal = heatseal, Bin = location, Time = DateTime.Now }; db.QCSInfoes.AddObject(dbItem); try { db.SaveChanges(); } catch (Exception e) { return(e.InnerException.Message); } return(string.Empty); }
public string SaveQCS(string heatseal,string location) { OnTheSpot.EFStuff.QCSInfo dbItem = new OnTheSpot.EFStuff.QCSInfo() { HeatSeal=heatseal, Bin=location, Time = DateTime.Now }; db.QCSInfoes.AddObject(dbItem); try { db.SaveChanges(); } catch (Exception e) { return e.InnerException.Message; } return string.Empty; }
/// <summary> /// Deprecated Method for adding a new object to the QCSInfoes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToQCSInfoes(QCSInfo qCSInfo) { base.AddObject("QCSInfoes", qCSInfo); }
/// <summary> /// Deprecated Method for adding a new object to the QCSInfoes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToQCSInfoes(QCSInfo qCSInfo) { base.AddObject("QCSInfoes", qCSInfo); }
/// <summary> /// Create a new QCSInfo object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="heatSeal">Initial value of the HeatSeal property.</param> /// <param name="bin">Initial value of the Bin property.</param> /// <param name="time">Initial value of the Time property.</param> public static QCSInfo CreateQCSInfo(global::System.Int32 id, global::System.String heatSeal, global::System.String bin, global::System.DateTime time) { QCSInfo qCSInfo = new QCSInfo(); qCSInfo.id = id; qCSInfo.HeatSeal = heatSeal; qCSInfo.Bin = bin; qCSInfo.Time = time; return qCSInfo; }