4
EF4 CTP5를 RC1로 마이그레이션 한 후 ObjectContext가 DbContext를 통해 더 이상 액세스 할 수 없다는 것을 알았습니다. 즉, ChangeObjectState 메서드에 액세스 할 수 없습니다.EF4 - ChangeObjectState가 더 이상 RC에서 액세스 할 수 없습니다
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)
{
// this is no longer working.. where is ObjectContext?
ObjectContext.ChangeObjectState(entity, entityState);
}
}
누구나 RC1에서이 메소드에 액세스하는 방법을 알고 있습니까?
감사합니다.