public Mercados Edit(Mercados model) { entities.Mercados.Attach(model); entities.ObjectStateManager.ChangeObjectState(model, EntityState.Modified); this.Commit(); return model; }
/// <summary> /// Deprecated Method for adding a new object to the Mercados EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMercados(Mercados mercados) { base.AddObject("Mercados", mercados); }
public Mercados Create(Mercados model) { entities.Mercados.AddObject(model); this.Commit(); return model; }
/// <summary> /// Create a new Mercados object. /// </summary> /// <param name="id_mercado">Initial value of the Id_mercado property.</param> public static Mercados CreateMercados(global::System.Int32 id_mercado) { Mercados mercados = new Mercados(); mercados.Id_mercado = id_mercado; return mercados; }