Esempio n. 1
0
 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&lt;T&gt; property instead.
 /// </summary>
 public void AddToMercados(Mercados mercados)
 {
     base.AddObject("Mercados", mercados);
 }
Esempio n. 3
0
 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;
 }