I have a list with a couple of multivalued lookupcolumns. When I try to do something with these fields the count is 0 even though I assigned it a couple of values.
Below is a snippet of my code: (I was not allowed to do SingleOrDefault so please just focus on the Lookup part of my problem :) )
Selvbetjening.SelvbetjeningDataContext context = Init();
VirksomheterItem virksomhet = null;
SPSecurity.RunWithElevatedPrivileges(delegate()
{
var virksomheter = context.Virksomheter.Where(i => i.Organisasjonsnummer.Equals(orgnummer)).ToList();
if (virksomheter.Count == 0 || virksomheter.Count > 1)
virksomhet = null;
else
virksomhet = virksomheter[0];
virksomhet.Adminbrukere; // this is the multivalued column that has the count of 0 even though ive assigned it a couple of values