18 references to AddErrorKind
System.Data.Entity (18)
System\Data\EntityModel\SchemaObjectModel\EntityContainer.cs (5)
292
AddErrorKind
error = this.Members.TryAdd(element.Clone(this));
344
AddErrorKind
error)
346
Debug.Assert(error !=
AddErrorKind
.MissingNameError, "Since entity container members are already resolved, name must never be empty");
349
if (error !=
AddErrorKind
.Succeeded)
351
Debug.Assert(error ==
AddErrorKind
.DuplicateNameError, "Error must be duplicate name error");
System\Data\EntityModel\SchemaObjectModel\Function.cs (2)
575
AddErrorKind
error = clone.Parameters.TryAdd((Parameter)parameter.Clone(clone));
576
Debug.Assert(error ==
AddErrorKind
.Succeeded, "Since we are cloning a validated function, this should never fail.");
System\Data\EntityModel\SchemaObjectModel\Schema.cs (3)
1177
AddErrorKind
error = this.SchemaManager.SchemaTypes.TryAdd(function);
1178
Debug.Assert(error !=
AddErrorKind
.MissingNameError, "Function identity can never be null while adding global functions");
1180
if (error !=
AddErrorKind
.Succeeded)
System\Data\EntityModel\SchemaObjectModel\SchemaElementLookUpTable.cs (8)
122
public
AddErrorKind
TryAdd(T type)
128
return
AddErrorKind
.MissingNameError;
135
return
AddErrorKind
.DuplicateNameError;
141
return
AddErrorKind
.Succeeded;
149
AddErrorKind
error = TryAdd(type);
151
if (error ==
AddErrorKind
.MissingNameError)
160
else if (error ==
AddErrorKind
.DuplicateNameError)
167
Debug.Assert(error ==
AddErrorKind
.Succeeded, "Invalid error encountered");