Skip to content

Commit cc36d29

Browse files
committed
Merge branch 'main' of github.com:csharpfritz/InstantAPIs
2 parents aad380b + d6ba7cf commit cc36d29

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
v0.2.0
22
- Introduced a fluent configuration API for defining which tables to include and exclude from the Entity Framework Context.
3+
- Can specify the BaseUrl for a table's APIs
34
- Added the ability to create APIs from JSON files on disk
45
- Added ability to specify OpenAPI configuration
5-
- Added Logging for reflection API generation
6+
- Added Logging for reflection API generation

0 commit comments

Comments
 (0)