/// <summary> /// Marks the provided <see cref="ORMEntity"/> to be deleted. /// </summary> /// <param name="entity">The <see cref="ORMEntity"/> to be deleted.</param> public void Remove(EntityType entity) { MutableEntityCollection.Find(x => x.Equals(entity)).IsMarkAsDeleted = true; }
/// <summary> /// Returns an enumerator that iterates through the <see cref="ORMCollection{EntityType}"/>. /// </summary> /// <returns>A <see cref="List{EntityType}.Enumerator"/>.</returns> public IEnumerator <ORMEntity> GetEnumerator() { return(MutableEntityCollection.GetEnumerator()); }
/// <summary> /// Adds the provided <see cref="ORMEntity"/> to the current collection. /// </summary> /// <param name="entity">The <see cref="ORMEntity"/> to be added.</param> public void Add(EntityType entity) { MutableEntityCollection.Add(entity); }