78 references to ModelBuilderErrorCode
System.Data.Entity.Design (78)
System\Data\Entity\Design\EntityCodeGenerator.cs (14)
252return new List<EdmSchemaError>() { new EdmSchemaError(Strings.EdmSchemaFileNotFound(sourceEdmSchemaFilePath), (int)ModelBuilderErrorCode.FileNotFound, EdmSchemaErrorSeverity.Error, sourceEdmSchemaFilePath, 0, 0) }; 297return new List<EdmSchemaError>() { EntityClassGenerator.CreateErrorForException(ModelBuilderErrorCode.FileNotFound, ex) }; 317errorList.Add(new EdmSchemaError(Strings.DefaultTargetVersionTooLow(EntityFrameworkVersions.Default, targetFrameworkVersion), (int)ModelBuilderErrorCode.SchemaVersionHigherThanTargetVersion, EdmSchemaErrorSeverity.Warning)); 330errors.Add(new EdmSchemaError(Strings.EntityCodeGenTargetTooLow, (int)ModelBuilderErrorCode.TargetVersionNotSupported, EdmSchemaErrorSeverity.Error)); 353ModelBuilderErrorCode errorCode = ModelBuilderErrorCode.PreprocessTemplateTransformationError; 367errors.Add(EntityClassGenerator.CreateErrorForException(ModelBuilderErrorCode.SecurityError, ex)); 371errors.Add(EntityClassGenerator.CreateErrorForException(ModelBuilderErrorCode.FileNotFound, ex)); 375errors.Add(EntityClassGenerator.CreateErrorForException(ModelBuilderErrorCode.SecurityError, ex)); 379errors.Add(EntityClassGenerator.CreateErrorForException(ModelBuilderErrorCode.DirectoryNotFound, ex)); 383errors.Add(EntityClassGenerator.CreateErrorForException(ModelBuilderErrorCode.IOException, ex)); 389errors.Add(EntityClassGenerator.CreateErrorForException(ModelBuilderErrorCode.PreprocessTemplateTransformationError, e, sourceEdmSchemaFilePath)); 402return new EdmSchemaError(Strings.EdmSchemaNotValid, (int)ModelBuilderErrorCode.SourceSchemaIsInvalid, EdmSchemaErrorSeverity.Error); 446private static EdmSchemaError ConvertToEdmSchemaError(CompilerError error, ModelBuilderErrorCode defaultErrorCode)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (5)
287internal void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, Exception e) 320session.AddError(Strings.UnableToGenerateForeignKeyPropertiesForV1, ModelBuilderErrorCode.UnableToGenerateForeignKeyPropertiesForV1, EdmSchemaErrorSeverity.Error, null); 343session.AddError(errorMessage, ModelBuilderErrorCode.UnsupportedForeinKeyPattern, EdmSchemaErrorSeverity.Error, null); 450ModelBuilderErrorCode.UnknownError, 526ModelBuilderErrorCode.UnableToGenerateFunctionImportParameterName, EdmSchemaErrorSeverity.Warning, null);
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (20)
217(int)ModelBuilderErrorCode.UnknownError, 565(int)ModelBuilderErrorCode.UnsupportedType, 625(int)ModelBuilderErrorCode.MissingTvfReturnTable, 659(int)ModelBuilderErrorCode.ParameterDirectionNotValid, 681(int)ModelBuilderErrorCode.UnsupportedType, 771session.AddErrorsForType(pkEntityType, new EdmSchemaError(Strings.UnsupportedDbRelationship(firstRow.RelationshipName), (int)ModelBuilderErrorCode.UnsupportedDbRelationship, EdmSchemaErrorSeverity.Warning)); 842(int)ModelBuilderErrorCode.UnsupportedForeinKeyPattern, 861(int)ModelBuilderErrorCode.SharedForeignKey, 1020(int)ModelBuilderErrorCode.AssociationMissingKeyColumn, 1034(int)ModelBuilderErrorCode.AssociationMissingKeyColumn, 1173(int)ModelBuilderErrorCode.NoPrimaryKeyDefined, 1181(int)ModelBuilderErrorCode.CannotCreateEntityWithoutPrimaryKey, 1206(int)ModelBuilderErrorCode.InvalidKeyTypeFound, 1236(int)ModelBuilderErrorCode.ExcludedColumnWasAKeyColumn, 1244(int)ModelBuilderErrorCode.ExcludedColumnWasAKeyColumn, 1331errors.Add(new EdmSchemaError(message, (int)ModelBuilderErrorCode.UnsupportedType, EdmSchemaErrorSeverity.Warning)); 1358(int)ModelBuilderErrorCode.FacetValueOutOfRange, 1382(int)ModelBuilderErrorCode.FacetValueOutOfRange, 1411(int)ModelBuilderErrorCode.FacetValueOutOfRange, 1439(int)ModelBuilderErrorCode.FacetValueOutOfRange,
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (1)
109(int)ModelBuilderErrorCode.MissingEntity,
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
317errorList.Add(new EdmSchemaError(Strings.DefaultTargetVersionTooLow(EntityFrameworkVersions.Default, targetFrameworkVersion), (int)System.Data.Entity.Design.SsdlGenerator.ModelBuilderErrorCode.SchemaVersionHigherThanTargetVersion, EdmSchemaErrorSeverity.Warning));
System\Data\Entity\Design\MetadataItemCollectionFactory.cs (1)
78errors.Add(new EdmSchemaError(Strings.TargetVersionSchemaVersionMismatch(maxExpectedVersion, actualVersion), (int)ModelBuilderErrorCode.SchemaVersionHigherThanTargetVersion, EdmSchemaErrorSeverity.Error));
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
175ModelBuilderErrorCode.InvalidAttributeSuppliedForProperty, 278ModelBuilderErrorCode.InvalidAttributeSuppliedForProperty,
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (14)
142AddError(ModelBuilderErrorCode.SecurityError, EdmSchemaErrorSeverity.Error, ex); 146AddError(ModelBuilderErrorCode.FileNotFound, EdmSchemaErrorSeverity.Error, ex); 150AddError(ModelBuilderErrorCode.SecurityError, EdmSchemaErrorSeverity.Error, ex); 154AddError(ModelBuilderErrorCode.DirectoryNotFound, EdmSchemaErrorSeverity.Error, ex); 158AddError(ModelBuilderErrorCode.IOException, EdmSchemaErrorSeverity.Error, ex); 206AddError(Strings.ItemExistsWithDifferentCase(item.BuiltInTypeKind.ToString(), item.Identity), ModelBuilderErrorCode.IncompatibleSettingForCaseSensitiveOption, 234AddError(Strings.PropertyExistsWithDifferentCase(item.Identity), ModelBuilderErrorCode.IncompatibleSettingForCaseSensitiveOption, 266AddError(ModelBuilderErrorCode.IncompatibleSettingForCaseSensitiveOption, 362public void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity) 367public void AddError(ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, Exception ex) 372internal void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, Exception ex) 377internal void AddError(ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, Exception ex, string itemIdentity) 385internal void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, string itemIdentity) 393internal void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, string parentIdentity, string itemIdentity)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (3)
187ModelBuilderErrorCode.EntityTypeAndSetAccessibilityConflict, 361ModelBuilderErrorCode.InvalidAttributeSuppliedForProperty, 380ModelBuilderErrorCode.InvalidGetStatementSuppliedForProperty,
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
148this.Generator.AddError(Strings.DuplicateClassName(type, name, cache[name]), ModelBuilderErrorCode.DuplicateClassName,
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (3)
116ModelBuilderErrorCode.GeneratedNavigationPropertyNameConflict, 158ModelBuilderErrorCode.InvalidSetStatementSuppliedForProperty, 264ModelBuilderErrorCode.InvalidGetStatementSuppliedForProperty,
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
216ModelBuilderErrorCode.InvalidGetStatementSuppliedForProperty, 328ModelBuilderErrorCode.InvalidSetStatementSuppliedForProperty,
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (2)
56ModelBuilderErrorCode.GeneratedPropertyAccessibilityConflict, 63ModelBuilderErrorCode.GeneratedPropertyAccessibilityConflict,
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (3)
81ModelBuilderErrorCode.InvalidAttributeSuppliedForType, 112ModelBuilderErrorCode.InvalidInterfaceSuppliedForType, 137ModelBuilderErrorCode.InvalidMemberSuppliedForType,
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
178ModelBuilderErrorCode.GeneratedFactoryMethodNameConflict,
System\Data\EntityModel\EntityClassGenerator.cs (5)
145(int)ModelBuilderErrorCode.CodeGenAdditionalEdmSchemaIsInvalid, 204errors.Add(CreateErrorForException(ModelBuilderErrorCode.CodeGenSourceFilePathIsInvalid, e, sourceEdmSchemaFilePath)); 236errors.Add(CreateErrorForException(ModelBuilderErrorCode.CodeGenAdditionalEdmSchemaIsInvalid, e, additionalSchemaFilePath)); 340internal static EdmSchemaError CreateErrorForException(ModelBuilderErrorCode errorCode, System.Exception exception, string sourceLocation) 348internal static EdmSchemaError CreateErrorForException(ModelBuilderErrorCode errorCode, System.Exception exception)