コード例 #1
0
        public void Delete(int id)
        {
            jurnaldopuslug pac = dbjurnaldopuslug.jurnaldopuslug.Where(c => c.id == id).FirstOrDefault();

            dbjurnaldopuslug.jurnaldopuslug.DeleteOnSubmit(pac);
            dbjurnaldopuslug.SubmitChanges();
        }
コード例 #2
0
        public void Edit(int id, int iddopuslug, int idclienta, int idjurnalanomera)
        {
            jurnaldopuslug pac = dbjurnaldopuslug.jurnaldopuslug.Where(c => c.id == id).FirstOrDefault();

            pac.idclienta       = idclienta;
            pac.iddopuslug      = iddopuslug;
            pac.idjurnalanomera = idjurnalanomera;
            dbjurnaldopuslug.SubmitChanges();
        }
コード例 #3
0
        public void ADD(int iddopuslug, int idclienta, int idjurnalanomera)
        {
            jurnaldopuslug pac = new jurnaldopuslug();

            pac.idclienta       = idclienta;
            pac.iddopuslug      = iddopuslug;
            pac.idjurnalanomera = idjurnalanomera;
            dbjurnaldopuslug.jurnaldopuslug.InsertOnSubmit(pac);
            dbjurnaldopuslug.SubmitChanges();
        }