Exemplo n.º 1
0
 public appopciones Edit(appopciones model)
 {
     entities.appopciones.Attach(model);
       entities.ObjectStateManager.ChangeObjectState(model, EntityState.Modified);
       this.Commit();
       return model;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the appopciones EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToappopciones(appopciones appopciones)
 {
     base.AddObject("appopciones", appopciones);
 }
Exemplo n.º 3
0
 public appopciones Create(appopciones model)
 {
     entities.appopciones.AddObject(model);
       this.Commit();
       return model;
 }
 /// <summary>
 /// Create a new appopciones object.
 /// </summary>
 /// <param name="id_opcion">Initial value of the Id_opcion property.</param>
 public static appopciones Createappopciones(global::System.Int32 id_opcion)
 {
     appopciones appopciones = new appopciones();
     appopciones.Id_opcion = id_opcion;
     return appopciones;
 }