RepositorySettingsT(RepositoryCachingBehavior, TimeSpan, NullableTimeSpan, ISubEntityFetchPlan, ExpressionFuncT, Boolean) Constructor
Constructor
Namespace: Ignition.Framework.RepositoriesAssembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
public RepositorySettings(
RepositoryCachingBehavior cachingBehavior,
TimeSpan cacheDuration,
TimeSpan? cacheDurationForConfigurableLists,
ISubEntityFetchPlan subEntityFetchPlan = null,
Expression<Func<T, bool>> predicate = null
)
Public Sub New (
cachingBehavior As RepositoryCachingBehavior,
cacheDuration As TimeSpan,
cacheDurationForConfigurableLists As TimeSpan?,
Optional subEntityFetchPlan As ISubEntityFetchPlan = Nothing,
Optional predicate As Expression(Of Func(Of T, Boolean)) = Nothing
)
public:
RepositorySettings(
RepositoryCachingBehavior cachingBehavior,
TimeSpan cacheDuration,
Nullable<TimeSpan> cacheDurationForConfigurableLists,
ISubEntityFetchPlan^ subEntityFetchPlan = nullptr,
Expression<Func<T, bool>^>^ predicate = nullptr
)
new :
cachingBehavior : RepositoryCachingBehavior *
cacheDuration : TimeSpan *
cacheDurationForConfigurableLists : Nullable<TimeSpan> *
?subEntityFetchPlan : ISubEntityFetchPlan *
?predicate : Expression<Func<'T, bool>>
(* Defaults:
let _subEntityFetchPlan = defaultArg subEntityFetchPlan null
let _predicate = defaultArg predicate null
*)
-> RepositorySettings
Parameters
- cachingBehavior RepositoryCachingBehavior
- Determines if a repository should cache its entities
- cacheDuration TimeSpan
- Determines how long a repository should cache its entities if caching is enabled
- cacheDurationForConfigurableLists NullableTimeSpan
- Determines how long a repository should cache its configurable lists.
- subEntityFetchPlan ISubEntityFetchPlan (Optional)
- Fetch plan used to determine how sub-entities are retrieved over the network
- predicate ExpressionFuncT, Boolean (Optional)
- Predicate for filtering the entities that this repository returns