-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCreateOrUpdateDataAccessModelCommand.cs
More file actions
56 lines (53 loc) · 2.41 KB
/
CreateOrUpdateDataAccessModelCommand.cs
File metadata and controls
56 lines (53 loc) · 2.41 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
52
53
54
55
56
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using System;
using System.Diagnostics;
using System.Runtime.Serialization;
namespace RapidField.SolidInstruments.DataAccess
{
/// <summary>
/// Represents a command to create or update a data access model.
/// </summary>
/// <remarks>
/// <see cref="CreateOrUpdateDataAccessModelCommand{TIdentifier, TDataAccessModel}" /> is the default implementation of
/// <see cref="ICreateOrUpdateDataAccessModelCommand{TIdentifier, TDataAccessModel}" />.
/// </remarks>
/// <typeparam name="TIdentifier">
/// The type of the unique primary identifier for the data access model.
/// </typeparam>
/// <typeparam name="TDataAccessModel">
/// The type of the associated data access model.
/// </typeparam>
[DataContract]
public class CreateOrUpdateDataAccessModelCommand<TIdentifier, TDataAccessModel> : DataAccessModelCommand<TIdentifier, TDataAccessModel>, ICreateOrUpdateDataAccessModelCommand<TIdentifier, TDataAccessModel>
where TIdentifier : IComparable, IComparable<TIdentifier>, IEquatable<TIdentifier>
where TDataAccessModel : class, IDataAccessModel<TIdentifier>
{
/// <summary>
/// Initializes a new instance of the <see cref="CreateOrUpdateDataAccessModelCommand{TIdentifier, TDataAccessModel}" />
/// class.
/// </summary>
/// <param name="model">
/// The associated data access model.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="model" /> is <see langword="null" />.
/// </exception>
public CreateOrUpdateDataAccessModelCommand(TDataAccessModel model)
: base(model)
{
return;
}
/// <summary>
/// Initializes a new instance of the <see cref="CreateOrUpdateDataAccessModelCommand{TIdentifier, TDataAccessModel}" />
/// class.
/// </summary>
[DebuggerHidden]
protected internal CreateOrUpdateDataAccessModelCommand()
: base()
{
return;
}
}
}