Commit for development environment setup

This commit is contained in:
2023-06-19 16:12:33 -04:00
parent be72063a3c
commit bbce2ad0a6
2209 changed files with 1171775 additions and 625 deletions

View File

@@ -0,0 +1,45 @@
using System;
namespace Csla.Validation
{
/// <summary>
/// Tracks all information for a rule.
/// </summary>
internal interface IRuleMethod
{
/// <summary>
/// Gets the priority of the rule method.
/// </summary>
/// <value>The priority value.</value>
/// <remarks>
/// Priorities are processed in descending
/// order, so priority 0 is processed
/// before priority 1, etc.</remarks>
int Priority { get;}
/// <summary>
/// Gets the name of the rule.
/// </summary>
/// <remarks>
/// The rule's name must be unique and is used
/// to identify a broken rule in the BrokenRules
/// collection.
/// </remarks>
string RuleName { get;}
/// <summary>
/// Returns the name of the field, property or column
/// to which the rule applies.
/// </summary>
RuleArgs RuleArgs { get;}
/// <summary>
/// Invokes the rule to validate the data.
/// </summary>
/// <returns>
/// <see langword="true" /> if the data is valid,
/// <see langword="false" /> if the data is invalid.
/// </returns>
bool Invoke(object target);
}
}