Ejemplo n.º 1
0
        private bool TodoCheckDiff(IEntityDiffs <TodoItem> diff, string checksum)
        {
            var diffPair      = diff.Single();
            var dbCheck       = diffPair.DatabaseValue.Description == checksum;
            var reqCheck      = diffPair.Entity.Description == null;
            var diffPairCheck = (dbCheck && reqCheck);

            var updatedRelationship = diff.Entities.GetByRelationship <Person>().Single();
            var diffcheck           = updatedRelationship.Key.PublicRelationshipName == "one-to-one-person";

            return(dbCheck && reqCheck && diffcheck);
        }
Ejemplo n.º 2
0
 /// <inheritdoc/>
 public virtual IEnumerable <T> BeforeUpdate(IEntityDiffs <T> entityDiff, ResourcePipeline pipeline)
 {
     return(entityDiff.Entities);
 }