Skip to content

Commit 0f5f9cd

Browse files
author
Chris Santero
committed
make DbContextExtensions public
1 parent 44fa79b commit 0f5f9cd

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

JSONAPI.EntityFramework/DbContextExtensions.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@
88

99
namespace JSONAPI.EntityFramework
1010
{
11-
internal static class DbContextExtensions
11+
/// <summary>
12+
/// Extensions on DbContext useful for JSONAPI.NET
13+
/// </summary>
14+
public static class DbContextExtensions
1215
{
13-
internal static IEnumerable<string> GetKeyNames(this DbContext dbContext, Type type)
16+
/// <summary>
17+
/// Gets the ID key names for an entity type
18+
/// </summary>
19+
/// <param name="dbContext"></param>
20+
/// <param name="type"></param>
21+
/// <returns></returns>
22+
public static IEnumerable<string> GetKeyNames(this DbContext dbContext, Type type)
1423
{
1524
var openMethod = typeof(DbContextExtensions).GetMethod("GetKeyNamesFromGeneric", BindingFlags.NonPublic | BindingFlags.Static);
1625
var method = openMethod.MakeGenericMethod(type);

0 commit comments

Comments
 (0)