/// <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 IsMappedPrimitiveProperty([NotNull] IProperty property) { Check.NotNull(property, nameof(property)); if (_typeMapper.IsTypeMapped( property.GetValueConverter()?.StoreType ?? property.ClrType)) { return(true); } var memberInfo = property.PropertyInfo ?? (MemberInfo)property.FieldInfo; return(memberInfo != null && _typeMapper.IsTypeMapped(memberInfo)); }
/// <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 IsMappedPrimitiveProperty([NotNull] Type clrType) { Check.NotNull(clrType, nameof(clrType)); return(_typeMapper.IsTypeMapped(clrType)); }