Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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());
 }
Exemplo n.º 3
0
 /// <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);
 }