1414
1515namespace FileContextCore . Infrastructure . Internal
1616{
17- /// <summary>
18- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
19- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
20- /// any release. You should only use it directly in your code with extreme caution and knowing that
21- /// doing so can result in application failures when updating to a new Entity Framework Core release.
22- /// </summary>
17+
2318 public class FileContextOptionsExtension : IDbContextOptionsExtension
2419 {
2520 private FileContextDatabaseRoot _databaseRoot ;
2621 private DbContextOptionsExtensionInfo _info ;
2722 private FileContextScopedOptions _options ;
2823
29- /// <summary>
30- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
31- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
32- /// any release. You should only use it directly in your code with extreme caution and knowing that
33- /// doing so can result in application failures when updating to a new Entity Framework Core release.
34- /// </summary>
24+
3525 public FileContextOptionsExtension ( )
3626 {
3727 _options = new FileContextScopedOptions ( null , null , null , null ) ;
3828 }
3929
40- /// <summary>
41- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
42- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
43- /// any release. You should only use it directly in your code with extreme caution and knowing that
44- /// doing so can result in application failures when updating to a new Entity Framework Core release.
45- /// </summary>
30+
4631 protected FileContextOptionsExtension ( [ NotNull ] FileContextOptionsExtension copyFrom )
4732 {
4833 _options = ( FileContextScopedOptions ) copyFrom . _options . Clone ( ) ;
4934 _databaseRoot = copyFrom . _databaseRoot ;
5035 }
5136
52- /// <summary>
53- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
54- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
55- /// any release. You should only use it directly in your code with extreme caution and knowing that
56- /// doing so can result in application failures when updating to a new Entity Framework Core release.
57- /// </summary>
37+
5838 public virtual DbContextOptionsExtensionInfo Info
5939 => _info ??= new ExtensionInfo ( this ) ;
6040
61- /// <summary>
62- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
63- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
64- /// any release. You should only use it directly in your code with extreme caution and knowing that
65- /// doing so can result in application failures when updating to a new Entity Framework Core release.
66- /// </summary>
41+
6742 protected virtual FileContextOptionsExtension Clone ( ) => new FileContextOptionsExtension ( this ) ;
6843
69- /// <summary>
70- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
71- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
72- /// any release. You should only use it directly in your code with extreme caution and knowing that
73- /// doing so can result in application failures when updating to a new Entity Framework Core release.
74- /// </summary>
44+
7545 public virtual FileContextScopedOptions Options => _options ;
7646
77- /// <summary>
78- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
79- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
80- /// any release. You should only use it directly in your code with extreme caution and knowing that
81- /// doing so can result in application failures when updating to a new Entity Framework Core release.
82- /// </summary>
47+
8348 public virtual FileContextOptionsExtension WithCustomOptions ( string databaseName , string serializer , string fileManager , string location )
8449 {
8550 var clone = Clone ( ) ;
@@ -91,20 +56,10 @@ public virtual FileContextOptionsExtension WithCustomOptions(string databaseName
9156 return clone ;
9257 }
9358
94- /// <summary>
95- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
96- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
97- /// any release. You should only use it directly in your code with extreme caution and knowing that
98- /// doing so can result in application failures when updating to a new Entity Framework Core release.
99- /// </summary>
59+
10060 public virtual FileContextDatabaseRoot DatabaseRoot => _databaseRoot ;
10161
102- /// <summary>
103- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
104- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
105- /// any release. You should only use it directly in your code with extreme caution and knowing that
106- /// doing so can result in application failures when updating to a new Entity Framework Core release.
107- /// </summary>
62+
10863 public virtual FileContextOptionsExtension WithDatabaseRoot ( [ NotNull ] FileContextDatabaseRoot databaseRoot )
10964 {
11065 var clone = Clone ( ) ;
@@ -114,23 +69,13 @@ public virtual FileContextOptionsExtension WithDatabaseRoot([NotNull] FileContex
11469 return clone ;
11570 }
11671
117- /// <summary>
118- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
119- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
120- /// any release. You should only use it directly in your code with extreme caution and knowing that
121- /// doing so can result in application failures when updating to a new Entity Framework Core release.
122- /// </summary>
72+
12373 public virtual void ApplyServices ( IServiceCollection services )
12474 {
12575 services . AddEntityFrameworkFileContextDatabase ( ) ;
12676 }
12777
128- /// <summary>
129- /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
130- /// the same compatibility standards as public APIs. It may be changed or removed without notice in
131- /// any release. You should only use it directly in your code with extreme caution and knowing that
132- /// doing so can result in application failures when updating to a new Entity Framework Core release.
133- /// </summary>
78+
13479 public virtual void Validate ( IDbContextOptions options )
13580 {
13681 }
0 commit comments