Example #1
0
 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();
 }
Example #2
0
        /// <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);
        }
Example #3
0
         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();
         }
Example #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the GSSes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToGSSes(GSS gSS)
 {
     base.AddObject("GSSes", gSS);
 }
Example #5
0
 /// <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;
 }
Example #6
0
 /// <summary>
 /// Deprecated Method for adding a new object to the GSSes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToGSSes(GSS gSS)
 {
     base.AddObject("GSSes", gSS);
 }