Skip to content

Commit

Permalink
Changed protection level of Options' properties to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
pergerch committed Nov 16, 2018
1 parent cc4d1dc commit 148babb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public static EnumLookupOptions Default
}
}

public Func<string, string> NamingFunction => name => this.postProcessingTableNamingFunction(this.namingFunction(name));
internal Func<string, string> NamingFunction => name => this.postProcessingTableNamingFunction(this.namingFunction(name));

public bool UseNumberLookup { get; private set; }
internal bool UseNumberLookup { get; private set; }

public EnumLookupOptions Pluralize()
{
Expand Down
14 changes: 7 additions & 7 deletions src/SpatialFocus.EntityFrameworkCore.Extensions/NamingOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,35 @@ public class NamingOptions
public static NamingOptions Default =>
new NamingOptions().SetTableNamingSource(NamingSource.DbSet).SetNamingScheme(NamingScheme.SnakeCase);

public Func<string, string> ConstraintNamingFunction
internal Func<string, string> ConstraintNamingFunction
{
get => this.constraintNamingFunction ?? NamingFunction;
set => this.constraintNamingFunction = value;
}

public Func<IMutableEntityType, bool> EntitiesToSkipEntirely
internal Func<IMutableEntityType, bool> EntitiesToSkipEntirely
{
get => this.entitiesToSkipEntirely ?? (type => false);
set => this.entitiesToSkipEntirely = value;
}

public Func<IMutableEntityType, bool> EntitiesToSkipTableNaming
internal Func<IMutableEntityType, bool> EntitiesToSkipTableNaming
{
get => this.entitiesToSkipTableNaming ?? (type => false);
set => this.entitiesToSkipTableNaming = value;
}

public Func<string, string> NamingFunction { get; set; }
internal Func<string, string> NamingFunction { get; set; }

public Func<string, string> PropertyNamingFunction
internal Func<string, string> PropertyNamingFunction
{
get => this.propertyNamingFunction ?? NamingFunction;
set => this.propertyNamingFunction = value;
}

public Func<IMutableEntityType, string> TableNameSource { get; set; }
internal Func<IMutableEntityType, string> TableNameSource { get; set; }

public Func<string, string> TableNamingFunction
internal Func<string, string> TableNamingFunction
{
get =>
name => this.postProcessingTableNamingFunction(this.tableNamingFunction != null
Expand Down

0 comments on commit 148babb

Please sign in to comment.