Previously we had this code which ran OK in LinqToSQL. It converted to a list of int? as further down the code is a Contains on the list which takes a parameter that is of type int?
Code: Select all
IQueryable<Account> internalAccounts = CompanyHelper.InternalAccounts(sc);
List<int?> accs = internalAccounts.Select(p => (int?)p.PrimaryKey).ToList();
I can change the code so it just creates a List<int> and then change the other code lower down in the Contains easily enough, but just wondering if this is a bug or just something that LinqToSQL supports but Devart does not.
thanks