private void DetachOchorenia(Ochorenia entity)
 {
     entity.Cis_Diagnoza = null;
 }
 private bool FilterOchorenia(Ochorenia entity)
 {
     return (entity.DiagnozaId == this.Id);
 }
 private bool FilterOchorenia(Ochorenia entity)
 {
     return (entity.IdOchorenia == this.IdOchorenie);
 }
 private void AttachOchorenia(Ochorenia entity)
 {
     entity.Cis_Diagnoza = this;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Ochorenia EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOchorenia(Ochorenia ochorenia)
 {
     base.AddObject("Ochorenia", ochorenia);
 }
 private bool FilterOchorenia(Ochorenia entity)
 {
     return (entity.OsCislo == this.OsCislo);
 }
 private bool FilterOchorenia(Ochorenia entity)
 {
     return (entity.Odhalil_doktor == this.IDDoktora);
 }
 public void InsertDisease(Ochorenia disease)
 {
     if ((disease.EntityState != EntityState.Added))
     {
         if ((disease.EntityState != EntityState.Detached))
         {
             this.ObjectContext.ObjectStateManager.
                 ChangeObjectState(disease, EntityState.Added);
         }
         else
         {
             this.ObjectContext.AddToOchorenia(disease);
         }
     }
 }
 private void AttachOchorenia(Ochorenia entity)
 {
     entity.Doktor = this;
 }
 private void DetachOchorenia(Ochorenia entity)
 {
     entity.Doktor = null;
 }
 private bool FilterOchorenia(Ochorenia entity)
 {
     return (entity.PriznakId == this.Id);
 }
 private void DetachOchorenia(Ochorenia entity)
 {
     entity.Cis_KlinickePriznaky = null;
 }
 private void AttachOchorenia(Ochorenia entity)
 {
     entity.Cis_KlinickePriznaky = this;
 }
 public IResult OnDetailMedical(Ochorenia medical)
 {
     PatientSummaryViewModel summaryViewModel = _serviceLocator.GetInstance<PatientSummaryViewModel>();
     summaryViewModel.OsC = medical.OsCislo;
     return Show.Child(summaryViewModel).In<IShellViewModel>();
 }
 private void AttachOchorenia(Ochorenia entity)
 {
     entity.IdentifikacneUdaje = this;
 }
            public void UpdateDisease(Ochorenia disease)
            {
                Ochorenia DiseaseChanges = this.ChangeSet.GetOriginal(disease);
                if (DiseaseChanges != null)
                {
                    this.ObjectContext.CreateObjectSet<Ochorenia>().AttachAsModified(disease, DiseaseChanges);
                }
                else
                {
                    this.ObjectContext.Ochorenia.Attach(disease);
                }

                this.ObjectContext.SaveChanges();
            }
 private void DetachOchorenia(Ochorenia entity)
 {
     entity.IdentifikacneUdaje = null;
 }
Exemple #18
0
     private void FixupOchorenia(Ochorenia previousValue)
     {
         if (previousValue != null && previousValue.Zakroky.Contains(this))
         {
             previousValue.Zakroky.Remove(this);
         }
 
         if (Ochorenia != null)
         {
             if (!Ochorenia.Zakroky.Contains(this))
             {
                 Ochorenia.Zakroky.Add(this);
             }
             if (IdOchorenia != Ochorenia.IdOchorenia)
             {
                 IdOchorenia = Ochorenia.IdOchorenia;
             }
         }
         else if (!_settingFK)
         {
             IdOchorenia = null;
         }
     }
 /// <summary>
 /// Create a new Ochorenia object.
 /// </summary>
 /// <param name="idOchorenia">Initial value of the IdOchorenia property.</param>
 /// <param name="osCislo">Initial value of the OsCislo property.</param>
 public static Ochorenia CreateOchorenia(global::System.Int32 idOchorenia, global::System.Int32 osCislo)
 {
     Ochorenia ochorenia = new Ochorenia();
     ochorenia.IdOchorenia = idOchorenia;
     ochorenia.OsCislo = osCislo;
     return ochorenia;
 }