Пример #1
0
 public void Add(mCIRCLE circle)
 {
     using (DefaultCS db = new DefaultCS())
     {
         db.mCIRCLEs.MergeOption = MergeOption.NoTracking;
         db.mCIRCLEs.AddObject(circle);
         db.SaveChanges();
     }
 }
Пример #2
0
        public void Update(mCIRCLE circle)
        {
            using (DefaultCS db = new DefaultCS())
            {
                var d = db.mCIRCLEs.Where(i => i.CIRCLE_ID == circle.CIRCLE_ID).First();
                d.CIRCLE_ENAME = circle.CIRCLE_ENAME;
                d.WING_ID = circle.WING_ID;
                d.officername = circle.officername;
                d.Std = circle.Std;
                d.Phoneno = circle.Phoneno;
                d.faxno = circle.faxno;
                d.Mobileno = circle.Mobileno;
                d.Lastupdatedon = circle.Lastupdatedon;

                db.SaveChanges();
            }
        }
Пример #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the mCIRCLEs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTomCIRCLEs(mCIRCLE mCIRCLE)
 {
     base.AddObject("mCIRCLEs", mCIRCLE);
 }
Пример #4
0
 /// <summary>
 /// Create a new mCIRCLE object.
 /// </summary>
 /// <param name="cIRCLE_ID">Initial value of the CIRCLE_ID property.</param>
 /// <param name="wING_ID">Initial value of the WING_ID property.</param>
 public static mCIRCLE CreatemCIRCLE(global::System.Int32 cIRCLE_ID, global::System.Byte wING_ID)
 {
     mCIRCLE mCIRCLE = new mCIRCLE();
     mCIRCLE.CIRCLE_ID = cIRCLE_ID;
     mCIRCLE.WING_ID = wING_ID;
     return mCIRCLE;
 }