66 references to DataAnnotationsResources
System.ComponentModel.DataAnnotations (66)
DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
130DataAnnotationsResources.AssociatedMetadataTypeTypeDescriptor_MetadataTypeContainsUnknownProperties,
DataAnnotations\CompareAttribute.cs (3)
17: base(DataAnnotationsResources.CompareAttribute_MustMatch) { 41return new ValidationResult(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CompareAttribute_UnknownProperty, OtherProperty)); 59DataAnnotationsResources.Common_PropertyNotFound, containerType.FullName, propertyName));
DataAnnotations\CreditCardAttribute.cs (1)
15DefaultErrorMessage = DataAnnotationsResources.CreditCardAttribute_Invalid;
DataAnnotations\CustomValidationAttribute.cs (9)
76: base(() => DataAnnotationsResources.CustomValidationAttribute_ValidationError) { 138return new ValidationResult(String.Format(CultureInfo.CurrentCulture, Resources.DataAnnotationsResources.CustomValidationAttribute_Type_Conversion_Failed, 204return DataAnnotationsResources.CustomValidationAttribute_ValidatorType_Required; 208return String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CustomValidationAttribute_Type_Must_Be_Public, this._validatorType.Name); 220return DataAnnotationsResources.CustomValidationAttribute_Method_Required; 226return String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CustomValidationAttribute_Method_Not_Found, this._method, this._validatorType.Name); 231return String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CustomValidationAttribute_Method_Must_Return_ValidationResult, this._method, this._validatorType.Name); 238return String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CustomValidationAttribute_Method_Signature, this._method, this._validatorType.Name); 248return String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.CustomValidationAttribute_Method_Signature, this._method, this._validatorType.Name);
DataAnnotations\DataTypeAttribute.cs (1)
110throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.DataTypeAttribute_EmptyDataTypeString));
DataAnnotations\DisplayAttribute.cs (3)
234throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.DisplayAttribute_PropertyNotSet, "AutoGenerateField", "GetAutoGenerateField")); 260throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.DisplayAttribute_PropertyNotSet, "AutoGenerateFilter", "GetAutoGenerateFilter")); 286throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.DisplayAttribute_PropertyNotSet, "Order", "GetOrder"));
DataAnnotations\EmailAddressAttribute.cs (1)
18DefaultErrorMessage = DataAnnotationsResources.EmailAddressAttribute_Invalid;
DataAnnotations\EnumDataTypeAttribute.cs (2)
24throw new InvalidOperationException(DataAnnotationsResources.EnumDataTypeAttribute_TypeCannotBeNull); 27throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.EnumDataTypeAttribute_TypeNeedsToBeAnEnum, this.EnumType.FullName));
DataAnnotations\FileExtensionsAttribute.cs (1)
21DefaultErrorMessage = DataAnnotationsResources.FileExtensionsAttribute_Invalid;
DataAnnotations\LocalizableString.cs (1)
137DataAnnotationsResources.LocalizableString_LocalizationFailed,
DataAnnotations\MaxLengthAttribute.cs (2)
41get { return DataAnnotationsResources.MaxLengthAttribute_ValidationError; } 93throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.MaxLengthAttribute_InvalidMaxLength));
DataAnnotations\MetadataTypeAttribute.cs (1)
17throw new InvalidOperationException(DataAnnotationsResources.MetadataTypeAttribute_TypeCannotBeNull);
DataAnnotations\MinLengthAttribute.cs (2)
25: base(DataAnnotationsResources.MinLengthAttribute_ValidationError) { 78throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.MinLengthAttribute_InvalidMinLength));
DataAnnotations\PhoneAttribute.cs (1)
17DefaultErrorMessage = DataAnnotationsResources.PhoneAttribute_Invalid;
DataAnnotations\RangeAttribute.cs (5)
68: base(() => DataAnnotationsResources.RangeAttribute_ValidationError) { 73throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.RangeAttribute_MinGreaterThanMax, maximum, minimum)); 146throw new InvalidOperationException(DataAnnotationsResources.RangeAttribute_Must_Set_Min_And_Max); 161throw new InvalidOperationException(DataAnnotationsResources.RangeAttribute_Must_Set_Operand_Type); 168DataAnnotationsResources.RangeAttribute_ArbitraryTypeNotIComparable,
DataAnnotations\RegularExpressionAttribute.cs (2)
42: base(() => DataAnnotationsResources.RegexAttribute_ValidationError) { 102throw new InvalidOperationException(DataAnnotationsResources.RegularExpressionAttribute_Empty_Pattern);
DataAnnotations\RequiredAttribute.cs (1)
16: base(() => DataAnnotationsResources.RequiredAttribute_ValidationError) {
DataAnnotations\Schema\ColumnAttribute.cs (2)
28throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.ArgumentIsNullOrWhitespace, "name")); 62throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.ArgumentIsNullOrWhitespace, "value"));
DataAnnotations\Schema\ForeignKeyAttribute.cs (1)
26throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.ArgumentIsNullOrWhitespace, "name"));
DataAnnotations\Schema\InversePropertyAttribute.cs (1)
20throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.ArgumentIsNullOrWhitespace, "property"));
DataAnnotations\Schema\TableAttribute.cs (2)
21throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.ArgumentIsNullOrWhitespace, "name")); 40throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.ArgumentIsNullOrWhitespace, "value"));
DataAnnotations\StringLengthAttribute.cs (4)
33: base(() => DataAnnotationsResources.StringLengthAttribute_ValidationError) { 72DataAnnotationsResources.StringLengthAttribute_ValidationErrorIncludingMinimum : this.ErrorMessageString; 84throw new InvalidOperationException(DataAnnotationsResources.StringLengthAttribute_InvalidMaxLength); 88throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.RangeAttribute_MinGreaterThanMax, this.MaximumLength, this.MinimumLength));
DataAnnotations\UIHintAttribute.cs (4)
192throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.UIHintImplementation_NeedEvenNumberOfControlParameters)); 202DataAnnotationsResources.UIHintImplementation_ControlParameterKeyIsNull, 211DataAnnotationsResources.UIHintImplementation_ControlParameterKeyIsNotAString, 220DataAnnotationsResources.UIHintImplementation_ControlParameterKeyOccursMoreThanOnce,
DataAnnotations\UrlAttribute.cs (1)
18DefaultErrorMessage = DataAnnotationsResources.UrlAttribute_Invalid;
DataAnnotations\ValidationAttribute.cs (7)
40: this(() => DataAnnotationsResources.ValidationAttribute_ValidationError) { 213throw new InvalidOperationException(DataAnnotationsResources.ValidationAttribute_Cannot_Set_ErrorMessage_And_Resource); 218throw new InvalidOperationException(DataAnnotationsResources.ValidationAttribute_NeedBothResourceTypeAndResourceName); 254DataAnnotationsResources.ValidationAttribute_ResourceTypeDoesNotHaveProperty, 262DataAnnotationsResources.ValidationAttribute_ResourcePropertyNotStringType, 271throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.ValidationAttribute_NeedBothResourceTypeAndResourceName)); 374throw new NotImplementedException(DataAnnotationsResources.ValidationAttribute_IsValid_NotImplemented);
DataAnnotations\ValidationAttributeStore.cs (1)
178throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.AttributeStore_Unknown_Property, this._type.Name, propertyName), "propertyName");
DataAnnotations\ValidationContext.cs (2)
366throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.DataAnnotationsResources.ValidationContextServiceContainer_ItemAlreadyExists, serviceType), "serviceType"); 386throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.DataAnnotationsResources.ValidationContextServiceContainer_ItemAlreadyExists, serviceType), "serviceType");
DataAnnotations\Validator.cs (3)
119throw new ArgumentException(Resources.DataAnnotationsResources.Validator_InstanceMustMatchValidationContextInstance, "instance"); 234throw new ArgumentException(Resources.DataAnnotationsResources.Validator_InstanceMustMatchValidationContextInstance, "instance"); 319throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.Validator_Property_Value_Wrong_Type, propertyName, propertyType), "value");
Resources\DataAnnotationsResources.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("System.ComponentModel.DataAnnotations.Resources.DataAnnotationsResources", typeof(DataAnnotationsResources).Assembly);