build: 21st april
scenario: adapter
db: northwind
Hi,
It looks like int fields are not excluded when added to the ExcludeFields.
var q1 = (from f in meta.Territory
select f).ExcludeFields(f => f.RegionId);
: Initial expression to process:
value(SD.LLBLGen.Pro.LinqSupportClasses.DataSource2`1[Orangehill.Linq2LLBLGen.EntityClasses.TerritoryEntity]).Select(f => f).ExcludeFields(value(System.Linq.Expressions.Expression`1[System.Func`2[Orangehill.Linq2LLBLGen.EntityClasses.TerritoryEntity,System.Object]][]))
Executed Sql Query:
Query: SELECT DISTINCT [LPLA_1].[TerritoryID] AS [TerritoryId], [LPLA_1].[TerritoryDescription], [LPLA_1].[RegionID] AS [RegionId] FROM [Northwind].[dbo].[Territories] [LPLA_1]
Regards,
Arjan