Beispiel #1
0
 public void ModRow(PlatnoscInnePrawa i)
 {
     using (var c = new Context())
     {
         c.Update(i);
         c.SaveChanges();
     }
 }
Beispiel #2
0
 public void AddRow(PlatnoscInnePrawa i)
 {
     using (var c = new Context())
     {
         c.PlatnoscInnePrawa.Add(i);
         c.SaveChanges();
     }
 }
Beispiel #3
0
        public void DelRow(PlatnoscInnePrawa i)
        {
            list.Remove(i);

            using (var c = new Context())
            {
                c.PlatnoscInnePrawa.Remove(i);
                c.SaveChanges();
            }
        }
        bool IEquatable <IInnePrawa> .Equals(IInnePrawa other)
        {
            //return //InnePrawaId.Equals(other.InnePrawaId) &&
            //       DzialkaId.Equals(other.DzialkaId) &&
            //       PodmiotId.Equals(other.PodmiotId) &&
            //       RodzajInnegoPrawaSloId.Equals(other.RodzajInnegoPrawaSloId) &&
            //       TransK_Id.Equals(other.TransK_Id) &&
            //       TransS_Id.Equals(other.TransS_Id) &&
            //       DataObowOd.Equals(other.DataObowOd) &&
            //       DataObowDo.Equals(other.DataObowDo) &&
            //       string.Equals(ProtPrzejkNr, other.ProtPrzejkNr) &&
            //       ProtPrzejData.Equals(other.ProtPrzejData) &&
            //       string.Equals(ProtPrzejScan, other.ProtPrzejScan) &&
            //       string.Equals(ProtZwrotNr, other.ProtZwrotNr) &&
            //       ProtZwrotData.Equals(other.ProtZwrotData) &&
            //       string.Equals(ProtZwrotScan, other.ProtZwrotScan) &&
            //       wizjaTerPrzek.Equals(other.wizjaTerPrzek) &&
            //       wizjaTerZwrot.Equals(other.wizjaTerZwrot) &&
            //       CelNabyciaId.Equals(other.CelNabyciaId) &&
            //       string.Equals(WarunkiRealizacji, other.WarunkiRealizacji) &&
            //       PlatnoscInnePrawa.Equals(other.PlatnoscInnePrawa);
            ////DecyzjeAdministracyjneId.Equals(other.DecyzjeAdministracyjneId);



            bool a = InnePrawaId.Equals(other.InnePrawaId) &&
                     DzialkaId.Equals(other.DzialkaId) &&
                     PodmiotId.Equals(other.PodmiotId) &&
                     RodzajInnegoPrawaSloId.Equals(other.RodzajInnegoPrawaSloId) &&
                     TransK_Id.Equals(other.TransK_Id) &&
                     TransS_Id.Equals(other.TransS_Id) &&
                     DataObowOd.Equals(other.DataObowOd) &&
                     DataObowDo.Equals(other.DataObowDo) &&
                     string.Equals(ProtPrzejkNr, other.ProtPrzejkNr) &&
                     ProtPrzejData.Equals(other.ProtPrzejData) &&
                     string.Equals(ProtPrzejScan, other.ProtPrzejScan) &&
                     string.Equals(ProtZwrotNr, other.ProtZwrotNr) &&
                     ProtZwrotData.Equals(other.ProtZwrotData) &&
                     string.Equals(ProtZwrotScan, other.ProtZwrotScan) &&
                     wizjaTerPrzek.Equals(other.wizjaTerPrzek) &&
                     wizjaTerZwrot.Equals(other.wizjaTerZwrot) &&
                     CelNabyciaId.Equals(other.CelNabyciaId) &&
                     string.Equals(WarunkiRealizacji, other.WarunkiRealizacji) &&
                     PlatnoscInnePrawa.Equals(other.PlatnoscInnePrawa);

            return(a);
        }