private void detach_Histories1(History entity) { this.SendPropertyChanging(); entity.Mosku1 = null; }
private void attach_Histories(History entity) { this.SendPropertyChanging(); entity.Mosku = this; }
partial void DeleteHistory(History instance);
partial void UpdateHistory(History instance);
partial void InsertHistory(History instance);
public void Insert(int source, int destination, DateTime dateTime) { var newEntry = new History { Source = source, Destination = destination, Date = dateTime }; _db.Histories.InsertOnSubmit(newEntry); _db.SubmitChanges(); Histories.Add(newEntry); }