-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIValueDataAccessModel.cs
More file actions
42 lines (38 loc) · 1.82 KB
/
IValueDataAccessModel.cs
File metadata and controls
42 lines (38 loc) · 1.82 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
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using RapidField.SolidInstruments.Core.Domain;
using System;
namespace RapidField.SolidInstruments.DataAccess
{
/// <summary>
/// Represents an object that models a data access entity as a domain value.
/// </summary>
/// <typeparam name="TIdentifier">
/// The type of the unique primary identifier for the model.
/// </typeparam>
/// <typeparam name="TDomainModel">
/// The type of the domain model to which the data access model is mapped.
/// </typeparam>
public interface IValueDataAccessModel<TIdentifier, TDomainModel> : IValueDataAccessModel<TIdentifier>, IDataAccessModel<TIdentifier, TDomainModel>
where TIdentifier : IComparable, IComparable<TIdentifier>, IEquatable<TIdentifier>
where TDomainModel : class, IDomainModel<TIdentifier>
{
}
/// <summary>
/// Represents an object that models a data access entity as a domain value.
/// </summary>
/// <typeparam name="TIdentifier">
/// The type of the unique primary identifier for the model.
/// </typeparam>
public interface IValueDataAccessModel<TIdentifier> : IValueDataAccessModel, IDataAccessModel<TIdentifier>
where TIdentifier : IComparable, IComparable<TIdentifier>, IEquatable<TIdentifier>
{
}
/// <summary>
/// Represents an object that models a data access entity as a domain value.
/// </summary>
public interface IValueDataAccessModel : IDataAccessModel
{
}
}