private void _load() { db = new BB_LINQDataContext(DB.connectionString); _rammeaftale = db.RammeAftales.OrderBy(x => x.AftaleID).Skip(_rammeaftalenr - 1).Take(1).ToArray()[0]; _kunde = db.Kundes.Where(x => x.KundeID == _rammeaftale.KundeID).First(); _rabat = db.Rabats.Where(x => x.RabatID == _rammeaftale.RabatID).First(); _postby = db.PostBies.Where(x => x.Postnr == _kunde.Postnummer).First(); _notater = db.Notats.Where(x => x.AftaleID == _rammeaftale.AftaleID).ToList(); _refresh(); }
partial void DeleteRabat(Rabat instance);
partial void UpdateRabat(Rabat instance);
partial void InsertRabat(Rabat instance);