Skip to content

Commit 148babb

Browse files
committed
Changed protection level of Options' properties to internal
1 parent cc4d1dc commit 148babb

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/SpatialFocus.EntityFrameworkCore.Extensions/EnumLookupOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public static EnumLookupOptions Default
2626
}
2727
}
2828

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

31-
public bool UseNumberLookup { get; private set; }
31+
internal bool UseNumberLookup { get; private set; }
3232

3333
public EnumLookupOptions Pluralize()
3434
{

src/SpatialFocus.EntityFrameworkCore.Extensions/NamingOptions.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,35 @@ public class NamingOptions
2626
public static NamingOptions Default =>
2727
new NamingOptions().SetTableNamingSource(NamingSource.DbSet).SetNamingScheme(NamingScheme.SnakeCase);
2828

29-
public Func<string, string> ConstraintNamingFunction
29+
internal Func<string, string> ConstraintNamingFunction
3030
{
3131
get => this.constraintNamingFunction ?? NamingFunction;
3232
set => this.constraintNamingFunction = value;
3333
}
3434

35-
public Func<IMutableEntityType, bool> EntitiesToSkipEntirely
35+
internal Func<IMutableEntityType, bool> EntitiesToSkipEntirely
3636
{
3737
get => this.entitiesToSkipEntirely ?? (type => false);
3838
set => this.entitiesToSkipEntirely = value;
3939
}
4040

41-
public Func<IMutableEntityType, bool> EntitiesToSkipTableNaming
41+
internal Func<IMutableEntityType, bool> EntitiesToSkipTableNaming
4242
{
4343
get => this.entitiesToSkipTableNaming ?? (type => false);
4444
set => this.entitiesToSkipTableNaming = value;
4545
}
4646

47-
public Func<string, string> NamingFunction { get; set; }
47+
internal Func<string, string> NamingFunction { get; set; }
4848

49-
public Func<string, string> PropertyNamingFunction
49+
internal Func<string, string> PropertyNamingFunction
5050
{
5151
get => this.propertyNamingFunction ?? NamingFunction;
5252
set => this.propertyNamingFunction = value;
5353
}
5454

55-
public Func<IMutableEntityType, string> TableNameSource { get; set; }
55+
internal Func<IMutableEntityType, string> TableNameSource { get; set; }
5656

57-
public Func<string, string> TableNamingFunction
57+
internal Func<string, string> TableNamingFunction
5858
{
5959
get =>
6060
name => this.postProcessingTableNamingFunction(this.tableNamingFunction != null

0 commit comments

Comments
 (0)