コード例 #1
0
 /// <summary>
 /// Create a new Block object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static Block CreateBlock(global::System.Int32 id)
 {
     Block block = new Block();
     block.ID = id;
     return block;
 }
コード例 #2
0
 public int Create(Block obj)
 {
     cont.Blocks.AddObject(obj);
     return cont.SaveChanges();
 }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Blocks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBlocks(Block block)
 {
     base.AddObject("Blocks", block);
 }