コード例 #1
0
ファイル: TextRepository.cs プロジェクト: yaneli86/AzulBodas
 public void AddText(Text text)
 {
     using (AzulBodasEntities ctx = new AzulBodasEntities())
     {
         ctx.Texts.AddObject(text);
         ctx.SaveChanges();
     }
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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);
 }