Ejemplo n.º 1
0
 public void AddText(Text text)
 {
     using (AzulBodasEntities ctx = new AzulBodasEntities())
     {
         ctx.Texts.AddObject(text);
         ctx.SaveChanges();
     }
 }
 /// <summary>
 /// Create a new Text object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="valueEs">Initial value of the ValueEs property.</param>
 public static Text CreateText(global::System.Int32 id, global::System.String valueEs)
 {
     Text text = new Text();
     text.Id = id;
     text.ValueEs = valueEs;
     return text;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Texts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTexts(Text text)
 {
     base.AddObject("Texts", text);
 }