Seems that there are problems with the use of multiple databases and
EntityDuplicateChecker. When you call IsValid() for an entity always
tries to use the default factory instead of use the factory of the
repository with which the entity was obtained (for example).
What steps will reproduce the problem?
1. Use a specific factory in a repository
--------------------------------------------------------
[SessionFactory("OtherFactory")]
public class ProductRepository : ...
{
//...
}
2. In some method of the logic call entity.IsValid()
-----------------------------------------------
Product product = productRepository.Get(productId); //Use "OtherFactory"
//Some changes in the entity...
product.IsValid(); //Always try to use "default" session factory to
validate entity duplicates
//Rest of code...
Original issue reported on code.google.com by ernestma...@yahoo.es on 17 Jun 2009 at 8:06
Original issue reported on code.google.com by
ernestma...@yahoo.es
on 17 Jun 2009 at 8:06