Skip to content

Commit d6ba7cf

Browse files
authored
Merge branch 'release' into main
2 parents f9b0587 + a07a51c commit d6ba7cf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Fritz.InstantAPIs/MapApiExtensions.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ internal class MapApiExtensions
1313

1414
// TODO: Authentication / Authorization
1515
private static Dictionary<Type, PropertyInfo> _IdLookup = new();
16-
private static ILogger Logger;
16+
17+
private static ILogger Logger;
1718

1819
internal static void Initialize<D,C>(ILogger logger)
1920
where D: DbContext
2021
where C: class
2122
{
2223

2324
Logger = logger;
24-
var theType = typeof(C);
25+
26+
var theType = typeof(C);
2527
var idProp = theType.GetProperty("id", BindingFlags.IgnoreCase | BindingFlags.Public | BindingFlags.Instance) ?? theType.GetProperties().FirstOrDefault(p => p.CustomAttributes.Any(a => a.AttributeType == typeof(KeyAttribute)));
2628

2729
if (idProp != null)

RELEASE_NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
- Introduced a fluent configuration API for defining which tables to include and exclude from the Entity Framework Context.
33
- Added the ability to create APIs from JSON files on disk
44
- Added ability to specify OpenAPI configuration
5-
- Added Logging for reflection API generation
5+
- Added Logging for reflection API generation

0 commit comments

Comments
 (0)