public void InsertICE(ICEOsoby ice) { if ((ice.EntityState != EntityState.Added)) { if ((ice.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager. ChangeObjectState(ice, EntityState.Added); } else { this.ObjectContext.AddToICEOsoby(ice); } } }
public void UpdateICE(ICEOsoby ice) { ICEOsoby ICEChanges = this.ChangeSet.GetOriginal(ice); if (ICEChanges != null) { this.ObjectContext.CreateObjectSet<ICEOsoby>().AttachAsModified(ice, ICEChanges); } else { this.ObjectContext.ICEOsoby.Attach(ice); } this.ObjectContext.SaveChanges(); }
private bool FilterICEOsoby1(ICEOsoby entity) { return (entity.OsCisloICE == this.OsCislo); }
private void DetachICEOsoby1(ICEOsoby entity) { entity.IdentifikacneUdaje1 = null; }
private void AttachICEOsoby1(ICEOsoby entity) { entity.IdentifikacneUdaje1 = this; }
/// <summary> /// Deprecated Method for adding a new object to the ICEOsoby EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToICEOsoby(ICEOsoby iCEOsoby) { base.AddObject("ICEOsoby", iCEOsoby); }
/// <summary> /// Create a new ICEOsoby object. /// </summary> /// <param name="osCislo">Initial value of the OsCislo property.</param> /// <param name="osCisloICE">Initial value of the OsCisloICE property.</param> public static ICEOsoby CreateICEOsoby(global::System.Int32 osCislo, global::System.Int32 osCisloICE) { ICEOsoby iCEOsoby = new ICEOsoby(); iCEOsoby.OsCislo = osCislo; iCEOsoby.OsCisloICE = osCisloICE; return iCEOsoby; }