是否可以在没有EntityKey的情况下对从ObjectContext检索到的对象执行MemberwiseClone操作?Id,则会得到以下异常:如果我尝试将EntityKey设置为null:
The EntityKey property can only be set when the current value of the property i
我想基于一个EntityKey查询我的数据库,是否有一种内置(或更简单的方法)来做到这一点?= new DbContext()) context.DataBase.SqlQuery<TestTable>("select * from @p0 where @p1 = @p2", EntityKey.EntitySetName, EntityKey.EntityKeyValues[0].Name, EntityKey.EntityKeyValues[0].Value);(这个解