Entity framework IDbCommand.ExecuteReader读取器与ObjectContext.Translate一起使用忽略映射/配置

Entity framework IDbCommand.ExecuteReader读取器与ObjectContext.Translate一起使用忽略映射/配置,entity-framework,entity-framework-5,Entity Framework,Entity Framework 5,使用此构造 IDbCommand cmd = DbContext.Database.Connection.CreateCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "sproc name"; // param work here DbContext.Database.Connection.Open(); using (DbDataReader reader = (DbDataReader)c

使用此构造

IDbCommand cmd = DbContext.Database.Connection.CreateCommand();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "sproc name";
// param work here
DbContext.Database.Connection.Open();
using (DbDataReader reader = (DbDataReader)cmd.ExecuteReader())
{
    result = ((IObjectContextAdapter)this.DbContext).ObjectContext.Translate<T>(reader, dbSetName, MergeOption.AppendOnly).ToList();
    // populate
}
但是我还有其他途径来A)执行存储过程和B)尊重我的映射吗

编辑: EF团队存在一个未解决的问题,即使在6.1中也没有解决:

The supplied DbDataReader must contain data that maps to the requested entity type