Exemple #1
0
        public void InvalidateAllDependentProperties()
        {
            var linqEntityType = GetType();

            foreach (var linqProperty in LinqPropertyBase.RegisteredPropertiesForOwnerType(linqEntityType))
            {
                InvalidateProperty(linqProperty);
            }
        }
Exemple #2
0
 internal EffectiveValueEntry GetEffectiveValue(LinqPropertyBase linqProperty)
 {
     if (EffectiveValues.ContainsKey(linqProperty.GlobalIndex))
     {
         var effectiveValue = EffectiveValues[linqProperty.GlobalIndex];
         return(effectiveValue);
     }
     if (linqProperty.OwnerType == GetType())
     {
         EffectiveValues.Add(linqProperty.GlobalIndex, new EffectiveValueEntry(this, linqProperty));
         var effectiveValue = EffectiveValues[linqProperty.GlobalIndex];
         return(effectiveValue);
     }
     throw new NotSupportedException("only valid on the LinqProperty's Owner type.");
 }
Exemple #3
0
        //TODO Generic GetValueBase

        public void InvalidateProperty(LinqPropertyBase linqProperty)
        {
            var effectiveValueEntry = GetEffectiveValue(linqProperty);

            effectiveValueEntry.InvalidateCache();
        }
Exemple #4
0
        public object GetValueBase(LinqPropertyBase linqProperty)
        {
            var effectiveValueEntry = GetEffectiveValue(linqProperty);

            return(effectiveValueEntry.GetValue());
        }
 internal static void RegisterInternal(LinqPropertyBase linqProperty)
 {
     RegisteredPropertyList.Add(linqProperty);
     linqProperty.BuildDependentPropertyChain();
 }