예제 #1
0
        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();
        }
예제 #2
0
 partial void DeleteRabat(Rabat instance);
예제 #3
0
 partial void UpdateRabat(Rabat instance);
예제 #4
0
 partial void InsertRabat(Rabat instance);