Hi,
For each DB table we have some common fields like:
CompanyID: Indicates the owner of the record.
UserID: Indicates the last user who had performed an action on the record.
UserAction: Indicates the last action performed by the user on the record.
LastModificationDate: Indicates the last modification date on the record.
These fields should be read-only for the application developer. Our core framework classes are responsible for manipulation of these fields.
I wonder if it might be feasible to implicitly assign a value to the specified fields before CRUD operations?
Is it possible to force LLBLGen to add an extra where clause to LINQ queries or the generated SQL commands to read current user's company id and filter table rows for the specified company?
Regards,
Farzad Badili