136 references to EDesignUtil
System.Data.Entity.Design (136)
System\Data\Entity\Design\Common\EDesignUtil.cs (2)
172
EDesignUtil
.CheckArgumentNull(targetEntityFrameworkVersion, parameterName);
175
throw
EDesignUtil
.Argument(parameterName);
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (3)
123
throw
EDesignUtil
.EdmReservedNamespace(namespaceToWrite);
148
throw
EDesignUtil
.NonSerializableType(type.BuiltInTypeKind);
697
throw
EDesignUtil
.NonSerializableType(set.BuiltInTypeKind);
System\Data\Entity\Design\Common\MetadataUtil.cs (1)
37
EDesignUtil
.CheckArgumentNull(factory, "factory");
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (4)
255
EDesignUtil
.CheckArgumentNull(lookups, "lookups");
256
EDesignUtil
.CheckArgumentNull(storeContainer, "storeContainer");
257
EDesignUtil
.CheckArgumentNull(modelContainer, "modelContainer");
266
EDesignUtil
.CheckArgumentNull(writer, "writer");
System\Data\Entity\Design\EntityCodeGenerator.cs (14)
34
_languageOption =
EDesignUtil
.CheckLanguageOptionArgument(languageOption, "languageOption");
40
set { _languageOption =
EDesignUtil
.CheckLanguageOptionArgument(value, "value"); }
72
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
75
EDesignUtil
.CheckArgumentNull(additionalEdmSchemaFilePaths, "additionalEdmSchemaFilePaths");
77
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
115
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
150
EDesignUtil
.CheckArgumentNull(sourceEdmSchema, "sourceEdmSchema");
151
EDesignUtil
.CheckArgumentNull(target, "target");
152
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
201
EDesignUtil
.CheckArgumentNull(sourceEdmSchema, "sourceEdmSchema");
202
EDesignUtil
.CheckArgumentNull(additionalEdmSchemas, "additionalEdmSchemas");
203
EDesignUtil
.CheckArgumentNull(target, "target");
204
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
583
throw
EDesignUtil
.InvalidOperation(message);
System\Data\Entity\Design\EntityFrameworkVersions.cs (2)
40
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(entityFrameworkVersion, "entityFrameworkVersion");
55
throw
EDesignUtil
.Argument("dataSpace");
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (21)
55
EDesignUtil
.CheckArgumentNull(namespaceName, "namespaceName");
56
EDesignUtil
.CheckArgumentNull(modelEntityContainerName, "modelEntityContainerName");
69
EDesignUtil
.CheckArgumentNull(storeItemCollection, "storeItemCollection");
70
EDesignUtil
.CheckArgumentNull(namespaceName, "namespaceName");
71
EDesignUtil
.CheckArgumentNull(modelEntityContainerName, "modelEntityContainerName");
76
throw
EDesignUtil
.SingleStoreEntityContainerExpected("storeItemCollection");
90
EDesignUtil
.CheckArgumentNull(storeEntityContainer, "storeEntityContainer");
93
throw
EDesignUtil
.InvalidStoreEntityContainer(storeEntityContainer.Name, "storeEntityContainer");
98
EDesignUtil
.CheckStringArgument(namespaceName, "namespaceName");
103
throw
EDesignUtil
.InvalidNamespaceNameArgument(namespaceName);
109
EDesignUtil
.CheckStringArgument(modelEntityContainerName, "modelEntityContainerName");
113
throw
EDesignUtil
.InvalidEntityContainerNameArgument(modelEntityContainerName);
117
throw
EDesignUtil
.DuplicateEntityContainerName(modelEntityContainerName, storeEntityContainer.Name);
212
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
223
EDesignUtil
.CheckStringArgument(outputFileName, "outputFileName");
240
EDesignUtil
.CheckArgumentNull(writer, "writer");
251
EDesignUtil
.CheckStringArgument(outputFileName, "outputFileName");
268
EDesignUtil
.CheckArgumentNull(writer, "writer");
352
throw
EDesignUtil
.MissingGenerationPatternForType(storeSet.BuiltInTypeKind);
448
string message =
EDesignUtil
.GetMessagesFromEntireExceptionChain(e);
745
throw
EDesignUtil
.EntityModelGeneratorSchemaNotLoaded();
System\Data\Entity\Design\EntityStoreSchemaFilterEntry.cs (1)
40
throw
EDesignUtil
.Argument("types");
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (17)
55
EDesignUtil
.CheckStringArgument(providerInvariantName, "providerInvariantName");
56
EDesignUtil
.CheckArgumentNull(connectionString, "connectionString"); // check for NULL string and support empty connection string
57
EDesignUtil
.CheckStringArgument(namespaceName, "namespaceName");
114
EDesignUtil
.CheckArgumentNull(filters, "filters");
126
EDesignUtil
.CheckArgumentNull(filters, "filters");
127
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
214
string message =
EDesignUtil
.GetMessagesFromEntireExceptionChain(e);
240
EDesignUtil
.CheckStringArgument(outputFileName, "outputFileName");
257
EDesignUtil
.CheckArgumentNull(writer, "writer");
299
EDesignUtil
.CheckArgumentNull(providerInvariantName, "providerInvariantName");
300
EDesignUtil
.CheckArgumentNull(connectionString, "connectionString");
301
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
310
throw
EDesignUtil
.Argument(Strings.EntityClient_InvalidStoreProvider(providerInvariantName), e);
318
throw
EDesignUtil
.ProviderIncompatible(Strings.ProviderFactoryReturnedNullFactory(providerInvariantName));
403
throw
EDesignUtil
.ProviderIncompatible(Strings.ProviderSchemaErrors, e);
430
throw
EDesignUtil
.ProviderIncompatible(Strings.ProviderSchemaErrors, EntityUtil.InvalidSchemaEncountered(MetadataUtil.CombineErrorMessage(errors)));
439
throw
EDesignUtil
.EntityStoreGeneratorSchemaNotLoaded();
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (13)
56
m_languageOption =
EDesignUtil
.CheckLanguageOptionArgument(languageOption, "languageOption");
84
set { m_languageOption =
EDesignUtil
.CheckLanguageOptionArgument(value, "value"); }
103
EDesignUtil
.CheckArgumentNull(mappingCollection, "mappingCollection");
104
EDesignUtil
.CheckStringArgument(outputPath, "outputPath");
132
EDesignUtil
.CheckArgumentNull(mappingCollection, "mappingCollection");
152
EDesignUtil
.CheckArgumentNull(mappingCollection, "mappingCollection");
153
EDesignUtil
.CheckArgumentNull(outputWriter, "outputWriter");
155
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
167
throw
EDesignUtil
.Argument(Strings.TargetVersionSchemaVersionMismatch(targetEntityFrameworkVersion, mappingVersion), null);
173
throw
EDesignUtil
.Argument(Strings.TargetVersionSchemaVersionMismatch(targetEntityFrameworkVersion, edmVersion), null);
206
EDesignUtil
.CheckArgumentNull(mappingCollection, "mappingCollection");
222
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
227
EDesignUtil
.CheckArgumentNull(mappingCollection, "mappingCollection");
System\Data\Entity\Design\MetadataItemCollectionFactory.cs (7)
63
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
114
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
155
EDesignUtil
.CheckArgumentNull(edmCollection, "edmCollection");
156
EDesignUtil
.CheckArgumentNull(storeCollection, "storeCollection");
157
EDesignUtil
.CheckArgumentNull(readers, "readers");
158
EDesignUtil
.CheckTargetEntityFrameworkVersionArgument(targetEntityFrameworkVersion, "targetEntityFrameworkVersion");
161
throw
EDesignUtil
.Argument("edmCollection");
System\Data\Entity\Design\PluralizationService\EnglishPluralizationService.cs (7)
317
EDesignUtil
.CheckArgumentNull<string>(word, "word");
344
EDesignUtil
.CheckArgumentNull<string>(word, "word");
372
EDesignUtil
.CheckArgumentNull<string>(word, "word");
562
EDesignUtil
.CheckArgumentNull<string>(word, "word");
864
EDesignUtil
.CheckArgumentNull<string>(word, "word");
911
EDesignUtil
.CheckArgumentNull<string>(singular, "singular");
912
EDesignUtil
.CheckArgumentNull<string>(plural, "plural");
System\Data\Entity\Design\PluralizationService\PluralizationService.cs (1)
38
EDesignUtil
.CheckArgumentNull<CultureInfo>(culture, "culture");
System\Data\Entity\Design\SSDLGenerator\RelationshipDetailsRow.cs (12)
57
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKCatalogColumn.ColumnName, _tableRelationshipDetails.TableName, e);
79
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKSchemaColumn.ColumnName, _tableRelationshipDetails.TableName, e);
101
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKTableColumn.ColumnName, _tableRelationshipDetails.TableName, e);
123
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKColumnColumn.ColumnName, _tableRelationshipDetails.TableName, e);
145
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKCatalogColumn.ColumnName, _tableRelationshipDetails.TableName, e);
167
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKSchemaColumn.ColumnName, _tableRelationshipDetails.TableName, e);
189
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKTableColumn.ColumnName, _tableRelationshipDetails.TableName, e);
211
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKColumnColumn.ColumnName, _tableRelationshipDetails.TableName, e);
233
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.OrdinalColumn.ColumnName, _tableRelationshipDetails.TableName, e);
255
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.RelationshipNameColumn.ColumnName, _tableRelationshipDetails.TableName, e);
277
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.RelationshipIdColumn.ColumnName, _tableRelationshipDetails.TableName, e);
298
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableRelationshipDetails.RelationshipIsCascadeDeleteColumn.ColumnName, _tableRelationshipDetails.TableName, e);
System\Data\Entity\Design\SSDLGenerator\TableDetailsRow.cs (13)
57
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.CatalogColumn.ColumnName, _tableTableDetails.TableName, e);
79
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.SchemaColumn.ColumnName, _tableTableDetails.TableName, e);
101
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.TableNameColumn.ColumnName, _tableTableDetails.TableName, e);
123
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.ColumnNameColumn.ColumnName, _tableTableDetails.TableName, e);
145
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.IsNullableColumn.ColumnName, _tableTableDetails.TableName, e);
167
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.DataTypeColumn.ColumnName, _tableTableDetails.TableName, e);
189
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.MaximumLengthColumn.ColumnName, _tableTableDetails.TableName, e);
211
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.DateTimePrecisionColumn.ColumnName, _tableTableDetails.TableName, e);
234
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.PrecisionColumn.ColumnName, _tableTableDetails.TableName, e);
256
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.ScaleColumn.ColumnName, _tableTableDetails.TableName, e);
278
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.IsIdentityColumn.ColumnName, _tableTableDetails.TableName, e);
300
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.IsServerGeneratedColumn.ColumnName, _tableTableDetails.TableName, e);
322
throw
EDesignUtil
.StonglyTypedAccessToNullValue(_tableTableDetails.IsPrimaryKeyColumn.ColumnName, _tableTableDetails.TableName, e);
System\Data\EntityModel\EdmToObjectNamespaceMap.cs (2)
35
EDesignUtil
.CheckStringArgument(edmNamespace, "edmNamespace");
36
EDesignUtil
.CheckArgumentNull(objectNamespace, "objectNamespace");
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
348
throw
EDesignUtil
.InvalidOperation(Strings.CannotChangePropertyReturnType(set.Name, Item.Name));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
941
throw
EDesignUtil
.InvalidOperation(Strings.CannotChangePropertyReturnTypeToNull(Item.Name, Item.DeclaringType.Name));
956
throw
EDesignUtil
.InvalidOperation(Strings.CannotChangePropertyReturnType(Item.Name, Item.DeclaringType.Name));
System\Data\EntityModel\EntityClassGenerator.cs (13)
79
_languageOption =
EDesignUtil
.CheckLanguageOptionArgument(languageOption, "languageOption");
88
set { _languageOption =
EDesignUtil
.CheckLanguageOptionArgument(value, "value"); }
105
EDesignUtil
.CheckArgumentNull(sourceEdmSchema, "sourceEdmSchema");
106
EDesignUtil
.CheckArgumentNull(target, "target");
115
EDesignUtil
.CheckArgumentNull(sourceEdmSchema, "sourceEdmSchema");
116
EDesignUtil
.CheckArgumentNull(additionalEdmSchemas, "additionalEdmSchemas");
117
EDesignUtil
.CheckArgumentNull(target, "target");
131
throw
EDesignUtil
.Argument(Strings.NullAdditionalSchema("additionalEdmSchema", index));
187
EDesignUtil
.CheckStringArgument(sourceEdmSchemaFilePath, "sourceEdmSchemaFilePath");
188
EDesignUtil
.CheckArgumentNull(additionalEdmSchemaFilePaths, "additionalEdmSchemaFilePaths");
189
EDesignUtil
.CheckStringArgument(targetPath, "targetPath");
221
throw
EDesignUtil
.Argument(Strings.NullAdditionalSchema("additionalEdmSchemaFilePaths", index));
320
throw
EDesignUtil
.InvalidOperation(Strings.TargetEntityFrameworkVersionToNewForEntityClassGenerator);