78 references to ModelBuilderErrorCode
System.Data.Entity.Design (78)
System\Data\Entity\Design\EntityCodeGenerator.cs (14)
252
return new List<EdmSchemaError>() { new EdmSchemaError(Strings.EdmSchemaFileNotFound(sourceEdmSchemaFilePath), (int)
ModelBuilderErrorCode
.FileNotFound, EdmSchemaErrorSeverity.Error, sourceEdmSchemaFilePath, 0, 0) };
297
return new List<EdmSchemaError>() { EntityClassGenerator.CreateErrorForException(
ModelBuilderErrorCode
.FileNotFound, ex) };
317
errorList.Add(new EdmSchemaError(Strings.DefaultTargetVersionTooLow(EntityFrameworkVersions.Default, targetFrameworkVersion), (int)
ModelBuilderErrorCode
.SchemaVersionHigherThanTargetVersion, EdmSchemaErrorSeverity.Warning));
330
errors.Add(new EdmSchemaError(Strings.EntityCodeGenTargetTooLow, (int)
ModelBuilderErrorCode
.TargetVersionNotSupported, EdmSchemaErrorSeverity.Error));
353
ModelBuilderErrorCode
errorCode =
ModelBuilderErrorCode
.PreprocessTemplateTransformationError;
367
errors.Add(EntityClassGenerator.CreateErrorForException(
ModelBuilderErrorCode
.SecurityError, ex));
371
errors.Add(EntityClassGenerator.CreateErrorForException(
ModelBuilderErrorCode
.FileNotFound, ex));
375
errors.Add(EntityClassGenerator.CreateErrorForException(
ModelBuilderErrorCode
.SecurityError, ex));
379
errors.Add(EntityClassGenerator.CreateErrorForException(
ModelBuilderErrorCode
.DirectoryNotFound, ex));
383
errors.Add(EntityClassGenerator.CreateErrorForException(
ModelBuilderErrorCode
.IOException, ex));
389
errors.Add(EntityClassGenerator.CreateErrorForException(
ModelBuilderErrorCode
.PreprocessTemplateTransformationError, e, sourceEdmSchemaFilePath));
402
return new EdmSchemaError(Strings.EdmSchemaNotValid, (int)
ModelBuilderErrorCode
.SourceSchemaIsInvalid, EdmSchemaErrorSeverity.Error);
446
private static EdmSchemaError ConvertToEdmSchemaError(CompilerError error,
ModelBuilderErrorCode
defaultErrorCode)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (5)
287
internal void AddError(string message,
ModelBuilderErrorCode
errorCode, EdmSchemaErrorSeverity severity, Exception e)
320
session.AddError(Strings.UnableToGenerateForeignKeyPropertiesForV1,
ModelBuilderErrorCode
.UnableToGenerateForeignKeyPropertiesForV1, EdmSchemaErrorSeverity.Error, null);
343
session.AddError(errorMessage,
ModelBuilderErrorCode
.UnsupportedForeinKeyPattern, EdmSchemaErrorSeverity.Error, null);
450
ModelBuilderErrorCode
.UnknownError,
526
ModelBuilderErrorCode
.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,
771
session.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,
1331
errors.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)
317
errorList.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)
78
errors.Add(new EdmSchemaError(Strings.TargetVersionSchemaVersionMismatch(maxExpectedVersion, actualVersion), (int)
ModelBuilderErrorCode
.SchemaVersionHigherThanTargetVersion, EdmSchemaErrorSeverity.Error));
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
175
ModelBuilderErrorCode
.InvalidAttributeSuppliedForProperty,
278
ModelBuilderErrorCode
.InvalidAttributeSuppliedForProperty,
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (14)
142
AddError(
ModelBuilderErrorCode
.SecurityError, EdmSchemaErrorSeverity.Error, ex);
146
AddError(
ModelBuilderErrorCode
.FileNotFound, EdmSchemaErrorSeverity.Error, ex);
150
AddError(
ModelBuilderErrorCode
.SecurityError, EdmSchemaErrorSeverity.Error, ex);
154
AddError(
ModelBuilderErrorCode
.DirectoryNotFound, EdmSchemaErrorSeverity.Error, ex);
158
AddError(
ModelBuilderErrorCode
.IOException, EdmSchemaErrorSeverity.Error, ex);
206
AddError(Strings.ItemExistsWithDifferentCase(item.BuiltInTypeKind.ToString(), item.Identity),
ModelBuilderErrorCode
.IncompatibleSettingForCaseSensitiveOption,
234
AddError(Strings.PropertyExistsWithDifferentCase(item.Identity),
ModelBuilderErrorCode
.IncompatibleSettingForCaseSensitiveOption,
266
AddError(
ModelBuilderErrorCode
.IncompatibleSettingForCaseSensitiveOption,
362
public void AddError(string message,
ModelBuilderErrorCode
errorCode, EdmSchemaErrorSeverity severity)
367
public void AddError(
ModelBuilderErrorCode
errorCode, EdmSchemaErrorSeverity severity, Exception ex)
372
internal void AddError(string message,
ModelBuilderErrorCode
errorCode, EdmSchemaErrorSeverity severity, Exception ex)
377
internal void AddError(
ModelBuilderErrorCode
errorCode, EdmSchemaErrorSeverity severity, Exception ex, string itemIdentity)
385
internal void AddError(string message,
ModelBuilderErrorCode
errorCode, EdmSchemaErrorSeverity severity, string itemIdentity)
393
internal void AddError(string message,
ModelBuilderErrorCode
errorCode, EdmSchemaErrorSeverity severity, string parentIdentity, string itemIdentity)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (3)
187
ModelBuilderErrorCode
.EntityTypeAndSetAccessibilityConflict,
361
ModelBuilderErrorCode
.InvalidAttributeSuppliedForProperty,
380
ModelBuilderErrorCode
.InvalidGetStatementSuppliedForProperty,
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
148
this.Generator.AddError(Strings.DuplicateClassName(type, name, cache[name]),
ModelBuilderErrorCode
.DuplicateClassName,
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (3)
116
ModelBuilderErrorCode
.GeneratedNavigationPropertyNameConflict,
158
ModelBuilderErrorCode
.InvalidSetStatementSuppliedForProperty,
264
ModelBuilderErrorCode
.InvalidGetStatementSuppliedForProperty,
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
216
ModelBuilderErrorCode
.InvalidGetStatementSuppliedForProperty,
328
ModelBuilderErrorCode
.InvalidSetStatementSuppliedForProperty,
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (2)
56
ModelBuilderErrorCode
.GeneratedPropertyAccessibilityConflict,
63
ModelBuilderErrorCode
.GeneratedPropertyAccessibilityConflict,
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (3)
81
ModelBuilderErrorCode
.InvalidAttributeSuppliedForType,
112
ModelBuilderErrorCode
.InvalidInterfaceSuppliedForType,
137
ModelBuilderErrorCode
.InvalidMemberSuppliedForType,
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
178
ModelBuilderErrorCode
.GeneratedFactoryMethodNameConflict,
System\Data\EntityModel\EntityClassGenerator.cs (5)
145
(int)
ModelBuilderErrorCode
.CodeGenAdditionalEdmSchemaIsInvalid,
204
errors.Add(CreateErrorForException(
ModelBuilderErrorCode
.CodeGenSourceFilePathIsInvalid, e, sourceEdmSchemaFilePath));
236
errors.Add(CreateErrorForException(
ModelBuilderErrorCode
.CodeGenAdditionalEdmSchemaIsInvalid, e, additionalSchemaFilePath));
340
internal static EdmSchemaError CreateErrorForException(
ModelBuilderErrorCode
errorCode, System.Exception exception, string sourceLocation)
348
internal static EdmSchemaError CreateErrorForException(
ModelBuilderErrorCode
errorCode, System.Exception exception)