Skip to content

Commit

Permalink
add some additional interfaces that will be mainly used to access pro…
Browse files Browse the repository at this point in the history
…perties of user row
  • Loading branch information
volkanceylan committed Aug 12, 2023
1 parent 2b7e505 commit 2b763fd
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Serenity.Net.Entity/Contracts/IDisplayNameRow.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Serenity.Data;

/// <summary>
/// An interface to provide access to a display name field
/// </summary>
public interface IDisplayNameRow
{
/// <summary>
/// Gets display name field
/// </summary>
StringField DisplayNameField { get; }
}
12 changes: 12 additions & 0 deletions src/Serenity.Net.Entity/Contracts/IEmailRow.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Serenity.Data;

/// <summary>
/// An interface that provides access to email field
/// </summary>
public interface IEmailRow
{
/// <summary>
/// Gets email field
/// </summary>
StringField EmailField { get; }
}
17 changes: 17 additions & 0 deletions src/Serenity.Net.Entity/Contracts/IPasswordRow.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace Serenity.Data;

/// <summary>
/// An interface that provides access to password hash and salt fields
/// </summary>
public interface IPasswordRow
{
/// <summary>
/// Gets password hash field
/// </summary>
StringField PasswordHashField { get; }

/// <summary>
/// Gets password salt field
/// </summary>
StringField PasswordSaltField { get; }
}

0 comments on commit 2b763fd

Please sign in to comment.