Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make metadata manager protected
  • Loading branch information
Chris Santero committed May 6, 2015
commit 003803405a86f81bf46656da737018fbee14ff7b
6 changes: 3 additions & 3 deletions JSONAPI.EntityFramework/EntityFrameworkMaterializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace JSONAPI.EntityFramework
/// </summary>
public partial class EntityFrameworkMaterializer : IMaterializer
{
private readonly IMetadataManager _metadataManager;
protected readonly IMetadataManager MetadataManager;

/// <summary>
/// The DbContext instance used to perform materializer operations
Expand All @@ -31,7 +31,7 @@ public partial class EntityFrameworkMaterializer : IMaterializer
/// <param name="context">The DbContext instance used to perform materializer operations</param>
public EntityFrameworkMaterializer(DbContext context, IMetadataManager metadataManager)
{
_metadataManager = metadataManager;
MetadataManager = metadataManager;
DbContext = context;
}

Expand Down Expand Up @@ -325,7 +325,7 @@ protected async Task Merge (Type type, object ephemeral, object material)
foreach (PropertyInfo prop in props)
{
// Comply with the spec, if a key was not set, it should not be updated!
if (!_metadataManager.PropertyWasPresent(ephemeral, prop)) continue;
if (!MetadataManager.PropertyWasPresent(ephemeral, prop)) continue;

if (IsMany(prop.PropertyType))
{
Expand Down