Localize using strongly typed resources:

generated Class with

     strotygen -p -t Yavsc.Models.IT.Fixing.Bug.resx

must be modified :

* prefix with 'Yavsc.Server.Resources.'  the baseName
  in call to new System.Resources.ResourceManager
* remove the internal ctor

additionally, the generated class must be or unique or partial
This commit is contained in:
Paul Schneider 2019-06-16 13:10:14 +01:00
commit 9501ee1f16
13 changed files with 342 additions and 44 deletions

View file

@ -21,7 +21,6 @@ namespace Yavsc.Attributes.Validation
if (value == null) {
return false;
}
Console.WriteLine("Validating string length for "+value.ToString());
string stringValue = value as string;
if (stringValue==null) return false;