You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// we override the implementation fro LinqBaseRepository becausee this is built in and doesn't need to find the key column and do dynamic expressions, etc.
55
+
protectedoverrideTGetQuery(TKeykey)
56
+
{
57
+
returnDbSet.Find(key);
58
+
}
59
+
60
+
// TODO: use logic like this to override GetPrimaryKey
61
+
// below is using the older EF stuff and it doesn't translate exactly
62
+
//private EntityKey GetEntityKey(object keyValue)
63
+
//{
64
+
// var entitySetName = GetEntityName();
65
+
// var keyPropertyName = _dbSet.EntitySet.ElementType.KeyMembers[0].ToString();
66
+
// return new EntityKey(entitySetName, new[] { new EntityKeyMember(keyPropertyName, keyValue) });
0 commit comments