This question is locked. New answers and comments are not allowed.
I am using the Fluent API to dynamically query my SQL server database. The reason I'm doing this as opposed to using the domain model generator is that I want to set the data table at run-time. I've noticed that if I instantiate a new instance of my context and change the table name, it does not update the table that's being queried after the first call. Is this being cached some how? I would like to instantiate my context several times within my session (not all at the same time), however, each time I want to change the name of the table that's being queried in my context, I see results from the original instance even through its been disposed as if it remembers the first table name I gave it.
protected override IList<
MappingConfiguration
> PrepareMapping()
{
List<
MappingConfiguration
> configurations = new List<
MappingConfiguration
>();
MappingConfiguration<
Model
> configuration = new MappingConfiguration<
Model
>();
configuration.MapType()
.WithDataAccessKind(Telerik.OpenAccess.DataAccessKind.ReadOnly)
.ToTable(tableName);