Hi all,
I'm using LLBLGen 3.1 (Adapter) and have the following problem:
When I try to fetch an entity (using Adapter::FetchEntity(someEntity) ) any aditional field set in the entityToFetch is ignored during fetching.
Sample:
// Structure of used entities...
SomeEntity (SampleClass)
-----------------------------------
- id (int) PK
- tenantId (int)
- otherField(s) (any)
ITenantEnity (Interface)
------------------------------
- tenantId (int)
SomeTable
-------------------
id (PK) | tenantId | otherFields..
1 | 25 | ...
2 | 100 | ...
// id is PK
// tenantId is not part of the PK
var some = new SomeEntity() { id = 1, tenantId = 100};
adapter.FetchEntity(some);
....
A someEntity with id 1 gets fetched no matter the tenantId
!!
How can I make sure all fields do matter when fetching a single entity without having to add the tenantId field to the PK, or having to fetch a collection and filter the collection?