You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dapper/DefaultTypeMap.cs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
usingSystem;
2
2
usingSystem.Collections.Generic;
3
+
usingSystem.Diagnostics.CodeAnalysis;
3
4
usingSystem.Linq;
4
5
usingSystem.Reflection;
5
6
@@ -33,6 +34,7 @@ internal static MethodInfo GetPropertySetterOrThrow(PropertyInfo propertyInfo, T
33
34
34
35
staticMethodInfoThrow(PropertyInfopropertyInfo)=>thrownewInvalidOperationException("Property setting not found for: "+propertyInfo?.Name);
35
36
}
37
+
[UnconditionalSuppressMessage("Trimming","IL2075",Justification="The property was obtained from the mapped type and its setter must be preserved whenever the property is preserved.")]
@@ -46,6 +48,7 @@ internal static MethodInfo GetPropertySetterOrThrow(PropertyInfo propertyInfo, T
46
48
null)!.GetSetMethod(true);
47
49
}
48
50
51
+
[UnconditionalSuppressMessage("Trimming","IL2070",Justification="Dapper's runtime mapping contract requires the mapped type's properties to be preserved.")]
[UnconditionalSuppressMessage("Trimming","IL2070",Justification="Dapper's runtime mapping contract requires the mapped type's fields to be preserved.")]
[UnconditionalSuppressMessage("Trimming","IL2070",Justification="The provider parameter type is only known at runtime and must preserve its public properties.")]
69
+
[UnconditionalSuppressMessage("Aot","IL3050",Justification="This fallback is only used for provider-specific structured parameters and is not supported by Dapper's AOT interceptors.")]
AddTypeHandlerCore(type,handler,true);// do not allow suppress clone
366
366
}
367
367
368
+
[UnconditionalSuppressMessage("Aot","IL3050",Justification="Runtime type-handler registration requires the caller to statically root the corresponding TypeHandlerCache<T> instantiation.")]
[UnconditionalSuppressMessage("Aot","IL3050",Justification="Runtime generic construction is limited to the optional SQL data-record handler path, which is not supported by Dapper's AOT interceptors.")]
||(typeis not null&&IsValueTuple(Nullable.GetUnderlyingType(type)));
2556
2558
2559
+
[UnconditionalSuppressMessage("Trimming","IL2075",Justification="The runtime parameter generator requires the parameter object's public properties and constructors to be preserved.")]
2560
+
[UnconditionalSuppressMessage("Aot","IL3050",Justification="This runtime parameter generator is a fallback for non-intercepted calls and is not used by generated AOT code.")]
0 commit comments