-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExampleCommands.cs
More file actions
34 lines (31 loc) · 1.58 KB
/
ExampleCommands.cs
File metadata and controls
34 lines (31 loc) · 1.58 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
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using RapidField.SolidInstruments.Core;
using RapidField.SolidInstruments.DataAccess;
using RapidField.SolidInstruments.Example.DatabaseModel.Commands;
using System;
using System.Collections.Generic;
namespace RapidField.SolidInstruments.Example.DatabaseModel
{
/// <summary>
/// Exposes a collection of data access commands for the Example database.
/// </summary>
public static class ExampleCommands
{
/// <summary>
/// Creates a data access command that adds a specified numeric value to the Fibonacci series.
/// </summary>
/// <param name="numberValue">
/// The value of the Fibonacci number that is added to the series.
/// </param>
public static IDataAccessCommand<Nix> AddFibonacciNumber(Int64 numberValue) => new AddFibonacciNumberCommand(numberValue);
/// <summary>
/// Creates a data access command that returns the numeric values for the Fibonacci series.
/// </summary>
/// <returns>
/// The numeric values for the Fibonacci series.
/// </returns>
public static IDataAccessCommand<IEnumerable<Int64>> GetFibonacciNumberValues() => new GetFibonacciNumberValuesCommand();
}
}