在我們的ASP.NET Core 1.1項目之一中,在渲染以下View時出現以下錯誤。我想我下面的正確像@DarinDimitrovhere 錯誤從SO用戶的建議:Input string was not in correct format 視圖模型: Public Class OrdersViewModel
{
....
[DisplayFormat(DataFormatS
假設您有與電子郵件的屬性的類,有一些數據註釋 public class Person
{
[Display(Name = "Email address")]
[Required(ErrorMessage = "The email address is required")]
[EmailAddress(ErrorMessage = "Invalid Email Ad
我想爲日期時間字段創建自定義驗證。 有我的課的預訂,同場 「日期」 上,我想把驗證: public class Booking
{
public int Id { get; set; }
public int Restochoisi { get; set; }
public int Nbpeople { get; set; }
[Custo