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:
parent
b9a75b71b8
commit
9501ee1f16
13 changed files with 342 additions and 44 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue