Lets take a Product as an example. A Product can belong to a particular Group, so it has a reference property of type Group. Currently as it is coded each repository has its own context, so ProductViewModel receives in constructor IProductRepository and IGroupRepository, which have different ObjectContexts.
Question: if I assign Group entity to a particular Product, will Context from ProductRepository treat this assigned Group entity as new entity, since it didn't have any prior knowledge about it, and will try to add it to the database? If yes, how to handle this scenario?