public void InsertICEText(ICEText ice)
 {
     if ((ice.EntityState != EntityState.Added))
     {
         if ((ice.EntityState != EntityState.Detached))
         {
             this.ObjectContext.ObjectStateManager.
                 ChangeObjectState(ice, EntityState.Added);
         }
         else
         {
             this.ObjectContext.AddToICEText(ice);
         }
     }
 }
            public void UpdateICEText(ICEText ice)
            {
                ICEText ICEChanges = this.ChangeSet.GetOriginal(ice);
                if (ICEChanges != null)
                {
                    this.ObjectContext.CreateObjectSet<ICEText>().AttachAsModified(ice, ICEChanges);
                }
                else
                {
                    this.ObjectContext.ICEText.Attach(ice);
                }

                this.ObjectContext.SaveChanges();
            }
 private bool FilterICEText(ICEText entity)
 {
     return (entity.IdOsoba == this.OsCislo);
 }
 private void DetachICEText(ICEText entity)
 {
     entity.IdentifikacneUdaje = null;
 }
 private void AttachICEText(ICEText entity)
 {
     entity.IdentifikacneUdaje = this;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the ICEText EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToICEText(ICEText iCEText)
 {
     base.AddObject("ICEText", iCEText);
 }
 /// <summary>
 /// Create a new ICEText object.
 /// </summary>
 /// <param name="iCEId">Initial value of the ICEId property.</param>
 /// <param name="idOsoba">Initial value of the IdOsoba property.</param>
 public static ICEText CreateICEText(global::System.Int32 iCEId, global::System.Int32 idOsoba)
 {
     ICEText iCEText = new ICEText();
     iCEText.ICEId = iCEId;
     iCEText.IdOsoba = idOsoba;
     return iCEText;
 }