Hello,

I have a problem with dblinq when I have a left join with null value.

My example is simple, I have a table PERSON associated with ADDRESS
but this adress may be null.

I generated my DataContext with DBMETAL.EXE, but when I execute my
request linq an error message appears : An object which allows the
null value must have a value .

Here's my request :

String connectionString =

System.Configuration.ConfigurationManager.AppSettings
[ConstantCnx.ConnectionString2];
MySqlConnection oConnection = new MySqlConnection(connectionString);
PetStoredB db3 = new PetStoredB(oConnection);

var Customers2 = (from c in db3.TCustomer select new TCustomer() { ID
= c.ID, TAddress = c.TAddress});

            foreach (TCustomer customer in Customers2)
            {
                System.Console.WriteLine(customer.TAddress.City);
            }

If it can help you, the problem come from QueryRunner.cs file at var
row = rowObjectCreator(reader,
selectQuery.DataContext._MappingContext);

But I don't know resolve this bug.

Have you an idea ?

Thank you.
Seb.
--~--~---------~--~----~------------~-------~--~----~
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