Skip to content

Commit 37c98ea

Browse files
Merge pull request #38 from johelvisguzman/hotfix/issue35
Closes #35 - Missing an implementation for the IRepositoryOptions
2 parents 91e869f + 765b240 commit 37c98ea

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
}

0 commit comments

Comments
 (0)