Exemplo n.º 1
0
        public virtual bool TryCreateFromBuffer(ValueBuffer valueBuffer, out TKey key)
        {
            var value = _propertyAccessors.ValueBufferGetter(valueBuffer);

            if (value == null)
            {
                key = default(TKey);
                return(false);
            }
            key = (TKey)value;
            return(true);
        }
Exemplo n.º 2
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public virtual bool TryCreateFromBuffer(ValueBuffer valueBuffer, out TKey key)
 {
     key = (TKey)_propertyAccessors.ValueBufferGetter(valueBuffer);
     return(key != null);
 }