ObjectFactory.Profile = "Oracle" or "Sql Server"
To set it up in the PluginGraph,
go -->
graph.ProfileManager.SetDefault("Oracle", pluginType, new
ConfiguredInstance(type))
where "pluginType" = IMemberRepository
and "type" = OracleMemberRepository
A better way might be to create a more generic IRepository that has
generic Find<T>() or Query<T>() methods that is consumed by the
tighter "MemberRepository" like this:
public class MemberRepository
{
public MemberRepository(IRepository rep)
{
}
}
Then you only need to switch the one object between OracleRepository,
SqlServerRepository, and InMemoryRepository in one go.
Good luck, and I'll answer the next question faster,
Jeremy
On Dec 10, 1:20 am, "kuss.r...@googlemail.com"