SELECT DATENAME(month, Date) AS [Month Name], Date
FROM #month
ORDER BY DATEPART(MONTH, Date) + ((1 - (DATEPART(MONTH, Date) / 10)) * 12)
我有这个输入作为用户名:
<BSModal @bind-IsOpen="@isAdd" Size="Size.Large" IgnoreEscape="true" IgnoreClickOnBackdrop="true">
<BSModalHeader @onclick="CloseModal">@modalTitle</BSModalHeader>
<BSModalBody>
<div class="col-md-12">
<EditForm Model="PersModel" OnValidSubmit="@CreatePersonal">
<FluentValidator TValidator="PersonalViewModelValidator" />
这是它的验证:
<label for="Username" class="control-label">@Loc["code"]</label>
<InputText id="Username" class="form-control" @bind-Value="PersModel.Pers.Username" />
<ValidationMessage For="@(() =>PersModel.Pers.Username)" />
我想问一问如何验证用户是否已在数据库中? 以后我会用它来检查用户是否在数据库中,但是我不知道如何将其实现到验证中。