File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/DataProtection/EntityFrameworkCore/src Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
// Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
+ using System . Diagnostics . CodeAnalysis ;
5
+
4
6
namespace Microsoft . AspNetCore . DataProtection . EntityFrameworkCore ;
5
7
6
8
/// <summary>
7
9
/// Code first model used by <see cref="EntityFrameworkCoreXmlRepository{TContext}"/>.
8
10
/// </summary>
11
+ // DataProtectionKey.Id is not used anywhere. Add DynamicallyAccessedMembers to prevent it from being trimmed.
12
+ // Note that in the future EF may annotate itself to include properties automatically, and the annotation here could be removed.
13
+ // Fixes https://github.com/dotnet/aspnetcore/issues/43187
14
+ [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicProperties ) ]
9
15
public class DataProtectionKey
10
16
{
11
17
/// <summary>
You can’t perform that action at this time.
0 commit comments