I have a data table with several xml fields. I'm using EF to get the data using where:
List<tblMSASAN> msa = ctx.tblMSASANs.Where(s => s.LCMGSupportLevel != "decommissioned").ToList();
Then using a foreach to iterate the list and pulling the xml field into an xmldocument and querying each node updating an attribute, then saving the context.
However, the dataset is too large and I get an out of memory exception. So I need to be able to query the xml first to return a smaller dataset.
List<tblWinServer> servers = ctx.tblWinServers.AsNoTracking().Where(s => s.LCMGSupportLevel != "decommissioned" && ( Convert.ToString(s.TapeDrives).Contains("Calyx") ||Convert.ToString(s.DiskShelves).Contains("Calyx"))).ToList();
But this doesn't work with a NotSupportedException.
Any ideas?