IEntityObjectsLoadOptions Interface |
Namespace: Omada.OE.Model
public interface IEntityObjectsLoadOptions : IEntityDataLoadOptions
The IEntityObjectsLoadOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | CacheOptions |
Contains options related to data caching.
(Inherited from IEntityDataLoadOptions.) |
![]() | EntityDataType |
The type of entity data that the options are used to load data of.
Must be one of the constants from the EntityDataVersion class.
(Inherited from IEntityDataLoadOptions.) |
![]() | IdList |
Ids-to-be-loaded.
|
![]() | ResultCompletenessState |
Representation of whether all data on each object has been loaded.
If any options has been specified that excludes parts of the loaded data on each object then it must be reflected in the value.
Should contain a value like e.g. "FULL", "NOPROPERTIES".
|
![]() | ResultInfo |
This is not a load option!
After having loaded entity data with the load options object this field contains info of e.g. whether the result was fetched from the cache.
The information is mainly for unit test purposes.
(Inherited from IEntityDataLoadOptions.) |
![]() | SkipCheckForChanges |
If true we will return cached objects without checking if they are still current - that is, if they have been modified after they were cached.
This can be ok in certain situations where we want to save the cost of determining if the cached objects have been modified.
|
![]() | StoredInTableName |
Name of the DB table that the objects reside in.
The table must have an ID and ChangeTime columns.
|
Name | Description | |
---|---|---|
![]() | BuildCacheKey |
The cache key to be used for storing the results of the query for the entity data.
The cache key is built based on the various options in the load options class.
(Inherited from IEntityDataLoadOptions.) |
![]() | HasNoCriteria |
Returns true if no load options (that is, filtering options) has been specified at all - meaning that all objects will be returned.
If any options has been specified that will make the result user-specific (e.g. if security rules are applied) then it must return false.
Note that it should not affect the result whether or not it is a full or partial representation of the objects that is being loaded.
|
![]() | IsResultCachable |
Returns if the loaded data is suitable to be cached.
Should return false if:
- load options are specified which makes it unlikely that the data will ever be fetched again and/or the loaded data set is very large.
- loaded data are "personal" - e.g. they reflect user specific security options.
|