Esempio n. 1
0
        static void DeleteBehandling()
        {
            Behandling deleteBehandling = new Behandling(Con());

            deleteBehandling.GetSetId = 1;
            deleteBehandling.Delete();
        }
Esempio n. 2
0
        static void OpretBehandling()
        {
            Behandling opretBehandling = new Behandling(Con());

            opretBehandling.GetSetDato  = "01-02-2019";
            opretBehandling.GetSetTid   = "10:30:00";
            opretBehandling.GetSetDyrId = 1;
            opretBehandling.Insert();
        }
Esempio n. 3
0
        static void OpdaterBehandling()
        {
            Behandling opdaterBehandling = new Behandling(Con());

            opdaterBehandling.GetSetDyrId = 2;
            opdaterBehandling.GetSetTid   = "08:45:00";
            opdaterBehandling.GetSetId    = 2;
            List <string> kolonner = new List <string> {
                "Tid", "DyrId"
            };

            opdaterBehandling.Update(kolonner);
        }