Exemplo n.º 1
0
 partial void UpdatePulse(Pulse instance);
Exemplo n.º 2
0
 partial void DeletePulse(Pulse instance);
Exemplo n.º 3
0
 partial void InsertPulse(Pulse instance);
Exemplo n.º 4
0
		private void detach_Pulses(Pulse entity)
		{
			this.SendPropertyChanging();
			entity.Client = null;
		}
Exemplo n.º 5
0
		private void attach_Pulses(Pulse entity)
		{
			this.SendPropertyChanging();
			entity.Client = this;
		}
Exemplo n.º 6
0
        public void SavePulse(Pulse pulse)
        {
            // if its a new Pulse, insert it
            if (pulse.PulseID == 0)
            {
                _db.Pulses.InsertOnSubmit(pulse);
            }
            else if (_db.Pulses.GetOriginalEntityState(pulse) == null)
            {
                // we are updating an existing Pulse, but it's not attached
                // to the data context, so attach it and detect changes

                _db.Pulses.Attach(pulse);
                _db.Pulses.Context.Refresh(RefreshMode.KeepCurrentValues, pulse);
            }

            _db.SubmitChanges();
        }
Exemplo n.º 7
0
 public void DeletePulse(Pulse pulse)
 {
     _db.Pulses.DeleteOnSubmit(pulse);
     _db.Pulses.Context.SubmitChanges();
 }