Exemplo n.º 1
0
 /// <summary>
 /// 
 /// </summary>
 public Vysetrovane_latky TransformPoToEntity()
 {
     Vysetrovane_latky latka = new Vysetrovane_latky();
     latka.nazov = this.nazov;
     latka.jednotka = this.jednotka;
     latka.skratka = this.skratka;
     return latka;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 public void TransformEntityToPo(Vysetrovane_latky latka)
 {
     if (latka != null)
     {
         Nazov = latka.nazov;
         Skratka = latka.skratka;
         Jednotka = latka.jednotka;
     }
 }
 private bool FilterVysetrovane_latky(Vysetrovane_latky entity)
 {
     return ((entity.id_vysetrovana_latka == this.id_vysetrovana_latka) 
                 && (entity.id_material == this.id_material));
 }
 private bool FilterVysetrovane_latky(Vysetrovane_latky entity)
 {
     return (entity.id_material == this.id_material);
 }
 private void DetachVysetrovane_latky(Vysetrovane_latky entity)
 {
     entity.Materialy = null;
 }
 private void AttachVysetrovane_latky(Vysetrovane_latky entity)
 {
     entity.Materialy = this;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Vysetrovane_latky EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToVysetrovane_latky(Vysetrovane_latky vysetrovane_latky)
 {
     base.AddObject("Vysetrovane_latky", vysetrovane_latky);
 }
 /// <summary>
 /// Create a new Vysetrovane_latky object.
 /// </summary>
 /// <param name="id_vysetrovana_latka">Initial value of the id_vysetrovana_latka property.</param>
 /// <param name="id_material">Initial value of the id_material property.</param>
 /// <param name="tombstone">Initial value of the tombstone property.</param>
 public static Vysetrovane_latky CreateVysetrovane_latky(global::System.Int32 id_vysetrovana_latka, global::System.Int32 id_material, global::System.Boolean tombstone)
 {
     Vysetrovane_latky vysetrovane_latky = new Vysetrovane_latky();
     vysetrovane_latky.id_vysetrovana_latka = id_vysetrovana_latka;
     vysetrovane_latky.id_material = id_material;
     vysetrovane_latky.tombstone = tombstone;
     return vysetrovane_latky;
 }
Exemplo n.º 9
0
 /// <summary>
 /// 
 /// </summary>
 public void OnDeleteLatka(Vysetrovane_latky latka)
 {
     if (latka != null)
     {
         VysetrLatky.Remove(latka);
         RaisePropertyChangedEventImmediately("VysetrLatky");
         Latky.Add(latka);
         RaisePropertyChangedEventImmediately("Latky");
     }
 }
 public void UpdateVysetrovane_latky(Vysetrovane_latky currentVysetrovane_latky)
 {
     this.ObjectContext.Vysetrovane_latky.AttachAsModified(currentVysetrovane_latky, this.ChangeSet.GetOriginal(currentVysetrovane_latky));
 }
 public void InsertVysetrovane_latky(Vysetrovane_latky vysetrovane_latky)
 {
     if ((vysetrovane_latky.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(vysetrovane_latky, EntityState.Added);
     }
     else
     {
         this.ObjectContext.Vysetrovane_latky.AddObject(vysetrovane_latky);
     }
 }