I am having a similar problem in two ASP.NET applications with Entity Framework.
When I try to update an entity that already has all the required mandatory attributes I get a EntityValidationErrors exception, however this property that...
I have a table where the employees of a company with the following fields are inserted; id , name , email , use_id , role_id .
user_id is the id of the company that the official works.
The v...
I have a template and wanted to validate the end date (which should be equal to or greater than the start date)
public class MyModel
{
[Key]
public int ModelId { get; set; }
[Display(Name = "Início")]
[DisplayFormat(DataFormat...
I have a layered application, and in my presentation layer, I have a ViewModel that is UsuarioViewModel within this I have a property call public email {get; set;} .
> that is being registered already exists in...
Good afternoon everyone!
I have a form, I created the rules using DataNotations and it works great when I use a button or input type submit inside my form.
Very well!
I want to change this button to a link that will call the ajax functi...
I have a class with decimals that can receive a value of -10.00 to 10.00 ( including 0 ), equivalent is a numeric (5.2) . The problem is that when creating my MetaData class, even specifying the range validation has not worked.
Home
Not...
I have the following templates:
public class Local {
[Key]
public int Id { get; set; }
public virtual Grupo Grupo { get; set; }
}
public class Grupo
{
[Key]
public int Id { get; set; }
[Required]
public int? Loc...
When you put the required option in the validation rules of Laravel
$validator=\Validator::make($request->all(),['po_bairro'=>'require|string|min:5|max:50']);
It requires you to have the value to continue the program....
I'm implementing validationBean in my project, and I'm having a hard time validating a field, but apparently everything is fine in the settings I made in my project as you can see:
Package:
<dependency>
<groupId>org.hibernat...