Jonathan Pryor applicò:

> > Do not require a separate Storage when updating referenced objects.
> 
> This doesn't apply against trunk r1218.

Resending, this time in the body.

If you prefer, I can also attach the patch gzipped to avoid end-of-line
mismatches.

Or publish my git-svn repo somewere with a web interface, so you can
look at the original changeset.

---
 src/DbLinq/Data/Linq/DataContext.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/DbLinq/Data/Linq/DataContext.cs 
b/src/DbLinq/Data/Linq/DataContext.cs
index 0ddc227..1347d10 100644
--- a/src/DbLinq/Data/Linq/DataContext.cs
+++ b/src/DbLinq/Data/Linq/DataContext.cs
@@ -518,11 +518,11 @@ namespace DbLinq.Data.Linq
                                //Confirmed against default .NET l2sql - 
association columns are always set, even if AutoSync==AutoSync.Never
                                //if (memberData.Association.ThisKey.Any(m => 
(m.AutoSync != AutoSync.Always) && (m.AutoSync != sync)))
                 //    continue;
-                var oks = memberData.Association.OtherKey.Select(m => 
m.StorageMember).ToList();
+                var oks = memberData.Association.OtherKey.Select(m => 
m.StorageMember ?? m.Member).ToList();
                 if (oks.Count == 0)
                     continue;
                 var pks = memberData.Association.ThisKey
-                    .Select(m => m.StorageMember.GetMemberValue(root))
+                    .Select(m => (m.StorageMember ?? 
m.Member).GetMemberValue(root))
                     .ToList();
                 if (pks.Count != oks.Count)
                     throw new InvalidOperationException(


-- 
Emanuele Aina
Studio Associato Di Nunzio e Di Gregorio
http://dndg.it/
Via Maria Vittoria, 2
10123 Torino - Italy


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to