Пример #1
0
        internal Guid GetLazyLookupKeyValue(string lookupPropertyName)
        {
            var key = GetLazyLookupKey(lookupPropertyName);

            return(LazyValues.ContainsKey(key)
                                ? (Guid)LazyValues[key]
                                : Guid.Empty);
        }
Пример #2
0
        internal void SetLazyLookupKeyValue(string lookupPropertyName, Guid value)
        {
            if (value == Guid.Empty)
            {
                return;
            }
            var key = GetLazyLookupKey(lookupPropertyName);

            if (LazyValues.ContainsKey(key))
            {
                LazyValues[key] = value;
            }
            else
            {
                LazyValues.Add(key, value);
            }
        }