File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
src/DotNetToolkit.Repository Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ namespace DotNetToolkit . Repository
2+ {
3+ using System ;
4+
5+ /// <summary>
6+ /// An implementation of <see cref="IRepositoryOptions" />.
7+ /// </summary>
8+ public class RepositoryOptions : IRepositoryOptions
9+ {
10+ #region Constructors
11+
12+ /// <summary>
13+ /// Initializes a new instance of the <see cref="RepositoryOptions"/> class.
14+ /// </summary>
15+ /// <param name="dbContextType">The type of the database context.</param>
16+ /// <param name="dbContextArgs">The database context arguments.</param>
17+ public RepositoryOptions ( Type dbContextType , params object [ ] dbContextArgs )
18+ {
19+ DbContextType = dbContextType ;
20+ DbContextArgs = dbContextArgs ;
21+ }
22+
23+ #endregion
24+
25+ #region Implementation of IRepositoryOptions
26+
27+ /// <summary>
28+ /// Gets or sets the database context arguments.
29+ /// </summary>
30+ public object [ ] DbContextArgs { get ; set ; }
31+
32+ /// <summary>
33+ /// Gets or sets the type of the database context.
34+ /// </summary>
35+ public Type DbContextType { get ; set ; }
36+
37+ #endregion
38+ }
39+ }
You can’t perform that action at this time.
0 commit comments