With many efforts in my side, i get the following code executing:
var instance = Activator.CreateInstance("Assemblyname", "TypeName").Unwrap();
//Code to fill instance using reflection
DbContext.Set(instance.GetType()).Add(instance);
DbContext.SaveChanges();
now i want to achieve something like following code:
var u = DbContext.Users;
var z = from y in u
where y.Email =="some email"
select y;
but i want get u Dynamically, i need something first piece of code to reference existent entity inside DbContext