-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDataAccessRepositoryFactory.cs
More file actions
51 lines (47 loc) · 2.2 KB
/
DataAccessRepositoryFactory.cs
File metadata and controls
51 lines (47 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using Microsoft.Extensions.Configuration;
using RapidField.SolidInstruments.ObjectComposition;
using System;
namespace RapidField.SolidInstruments.DataAccess
{
/// <summary>
/// Encapsulates creation of new <see cref="IDataAccessRepository" /> instances that map to database entities.
/// </summary>
/// <remarks>
/// <see cref="DataAccessRepositoryFactory" /> is the default implementation of <see cref="IDataAccessRepositoryFactory" />.
/// </remarks>
public abstract class DataAccessRepositoryFactory : ObjectFactory<IDataAccessRepository>, IDataAccessRepositoryFactory
{
/// <summary>
/// Initializes a new instance of the <see cref="DataAccessRepositoryFactory" /> class.
/// </summary>
protected DataAccessRepositoryFactory()
: base()
{
return;
}
/// <summary>
/// Initializes a new instance of the <see cref="DataAccessRepositoryFactory" /> class.
/// </summary>
/// <param name="applicationConfiguration">
/// Configuration information for the application.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="applicationConfiguration" /> is <see langword="null" />.
/// </exception>
protected DataAccessRepositoryFactory(IConfiguration applicationConfiguration)
: base(applicationConfiguration)
{
return;
}
/// <summary>
/// Releases all resources consumed by the current <see cref="DataAccessRepositoryFactory" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
}