/// <summary> /// Deprecated Method for adding a new object to the TodoSet EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTodoSet(Todo todo) { base.AddObject("TodoSet", todo); }
/// <summary> /// Create a new Todo object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="order">Initial value of the Order property.</param> /// <param name="done">Initial value of the Done property.</param> /// <param name="text">Initial value of the Text property.</param> public static Todo CreateTodo(global::System.Int32 id, global::System.Int32 order, global::System.Boolean done, global::System.String text) { Todo todo = new Todo(); todo.Id = id; todo.Order = order; todo.Done = done; todo.Text = text; return todo; }