After porting EF4 CTP5 to RC1, I noticed that ObjectContext is no longer available through DbContext. This means that I cannot access the ChangeObjectState method.
class DataContext : DbContext { public DataContext() { } public DataContext(DbCompiledModel dbModel) : base(dbModel) { } public DbSet<MyClass> MyClasses { get; set; } public void ChangeObjectState<T>(T entity, EntityState entityState) {
Does anyone know how to access this method in RC1?
Thanks.
source share