-
Can we add an option for this? If nullable/string add attribute = true.
https://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.displayformatattribute.convertemptystringtonull…
-
This is a known issue with building .NET 4.0 libraries and using powershell.
This issue is more of an FYI than a problem. I have done the following workaround but it is something you should consider …
-
### Description
Noticed a few things to look at for possible updates ...
1. WRT the model validation article (*Built-in attributes* section) at ...
https://learn.microsoft.com/en-us/aspnet/c…
-
The Remarks section states that this attribute can be "applied to types, properties, fields, methods, and method parameters", then explains some cases, but not the types nor the field ones.
It would b…
-
Attributes such as [Required], [Range], [StringLength(5)] from the System.ComponentModel.DataAnnotations namespace should be retained in the generated client side models so validation can be performed…
-
1.
java package
javax.validation.constraints.*
to C# package
System.ComponentModel.DataAnnotations.*
support.
2.
lombok.Data support C# { get; set; }
3.
Java attribute hump named to C# PA…
-
### Description
The System.ComponentModel.DataAnnotations.ScaffoldTableAttribute type is missing in .NET Core. However, ScaffoldColumnAttribute is present. 🤷
It looks like this was previously di…
-
When using the DataAnnotations validation system you indicate a successful validation by returning ValidationResult.Success, e.g.
``` csharp
public static ValidationResult IsValueValue(string valueTe…
KAW24 updated
8 years ago
-
```
[ValueObject(typeof(int))]
[System.ComponentModel.DataAnnotations.Range(2,100, Error = "Generate validator from this. Hm. Even compile time validator for well know annotations"]
public partial …
-
Is there any way to convert error keys from their C# property names to their JSON property names, as in MVC model validation?
https://learn.microsoft.com/en-us/aspnet/core/mvc/models/validation?vie…