limit search char
This commit is contained in:
@@ -25,9 +25,11 @@ namespace lmltfy
|
|||||||
//Access the db to JIT the EF dll, and generate a URL to JIT parts of our DLL (improve page loads on subsequent first time app starts)
|
//Access the db to JIT the EF dll, and generate a URL to JIT parts of our DLL (improve page loads on subsequent first time app starts)
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
#else
|
#else
|
||||||
Console.WriteLine(azuredb.GetModelByKey("tdszzxr3").Brand);
|
//MvcHandler.DisableMvcResponseHeader = true;
|
||||||
|
// Console.WriteLine(azuredb.GetModelByKey("tdszzxr3").Brand);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,9 @@ namespace lmltfy.Models
|
|||||||
PartitionKey = ConsPartitionKey;
|
PartitionKey = ConsPartitionKey;
|
||||||
}
|
}
|
||||||
[AllowHtml]
|
[AllowHtml]
|
||||||
[StringLength(2000, ErrorMessage = "No more than 2000 characters", MinimumLength = 1)]
|
[StringLength(2000, ErrorMessage = "No more than 2000 characters", MinimumLength = 1), Required(AllowEmptyStrings = false, ErrorMessage = "Search must not be empty")]
|
||||||
public string Search { get; set; }
|
public string Search { get; set; }
|
||||||
|
|
||||||
string url;
|
string url;
|
||||||
|
|
||||||
[Key]
|
[Key]
|
||||||
|
|||||||
Reference in New Issue
Block a user