Esempio n. 1
0
 public void Add(mBEAT section)
 {
     using (DefaultCS db = new DefaultCS())
     {
         db.mBEATs.MergeOption = MergeOption.NoTracking;
         db.mBEATs.AddObject(section);
         db.SaveChanges();
     }
 }
Esempio n. 2
0
        public void Update(mBEAT section)
        {
            using (DefaultCS db = new DefaultCS())
            {
                var d = db.mBEATs.Where(i => i.BEAT_ID == section.BEAT_ID).First();
                d.BEAT_ENAME = section.BEAT_ENAME;
                d.RASST_ID = section.RASST_ID;
                //d.OfficerName = section.OfficerName;
                d.Std = section.Std;
                d.Phoneno = section.Phoneno;
                d.faxno = section.faxno;
                d.Mobileno = section.Mobileno;
                d.UpdateOn = section.UpdateOn;

                db.SaveChanges();
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the mBEATs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTomBEATs(mBEAT mBEAT)
 {
     base.AddObject("mBEATs", mBEAT);
 }
Esempio n. 4
0
 /// <summary>
 /// Create a new mBEAT object.
 /// </summary>
 /// <param name="bEAT_ID">Initial value of the BEAT_ID property.</param>
 /// <param name="rASST_ID">Initial value of the RASST_ID property.</param>
 public static mBEAT CreatemBEAT(global::System.Int64 bEAT_ID, global::System.Int64 rASST_ID)
 {
     mBEAT mBEAT = new mBEAT();
     mBEAT.BEAT_ID = bEAT_ID;
     mBEAT.RASST_ID = rASST_ID;
     return mBEAT;
 }