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