/// <summary> /// Copy the entity if it matches the filter /// </summary> /// <param name="filter"></param> /// <typeparam name="T"></typeparam> protected void Copy <T>(TranslateEntityFilter <T, TSchema> filter) where T : TSchema { var specification = new CopyEntityTranslatorSpecification <T, TSchema>(filter); _specification.Add(specification); }
/// <summary> /// Exclude entities of the specified entity type that match the provided filter. /// </summary> /// <param name="filter"></param> /// <typeparam name="T"></typeparam> protected void Exclude <T>(TranslateEntityFilter <T, TSchema> filter) where T : TSchema { var specification = new ExcludeEntityTranslateSpecification <T, TSchema>(filter); _specification.Add(specification); }
public CopyEntityTranslator(TranslateEntityFilter <TEntity, TSchema> filter = null) { _filter = filter; _observers = new TranslatorObservable <TSchema>(); }
public ExcludeEntityTranslatorSpecification(TranslateEntityFilter <TEntity, TSchema> filter = null) { _filter = filter; }
public CopyEntityTranslateSpecification(TranslateEntityFilter <TEntity, TSchema> filter = null) { _filter = filter; }