/// <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; }
public int Create(Block obj) { cont.Blocks.AddObject(obj); return cont.SaveChanges(); }
/// <summary> /// Deprecated Method for adding a new object to the Blocks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBlocks(Block block) { base.AddObject("Blocks", block); }