/// <summary> /// Create a new line object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="name">Initial value of the name property.</param> public static line Createline(global::System.Int32 id, global::System.String name) { line line = new line(); line.id = id; line.name = name; return line; }
// Insert Methods public int InsertLine(string Name) { line line = new line { name = Name }; _ctx.AddTolines(line); _ctx.SaveChanges(); return line.id; }
/// <summary> /// Deprecated Method for adding a new object to the lines EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTolines(line line) { base.AddObject("lines", line); }