1 write to Generator
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\Emitter.cs (1)
46
Generator
= generator;
76 references to Generator
System.Data.Entity.Design (76)
System\Data\EntityModel\Emitters\AssociationTypeEmitter.cs (2)
38
Generator
.CompileUnit.AssemblyCustomAttributes.Add(
57
return new CodeTypeOfExpression(
Generator
.GetFullyQualifiedTypeReference(((RefType)end.TypeUsage.EdmType).ElementType));
System\Data\EntityModel\Emitters\AttributeEmitter.cs (3)
63
EmitKnownTypeAttributes(emitter.Item, emitter.
Generator
, typeDecl);
277
emitter.
Generator
.AddError(Strings.InvalidAttributeSuppliedForProperty(emitter.Item.Name),
308
EmitKnownTypeAttributes(emitter.Item, emitter.
Generator
, typeDecl);
System\Data\EntityModel\Emitters\ComplexTypeEmitter.cs (1)
42
Generator
.AttributeEmitter.EmitTypeAttributes( this, typeDecl );
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (16)
67
Generator
.RaiseTypeGeneratedEvent(eventArgs);
167
Generator
.VerifyLanguageCaseSensitiveCompatibilityForEntitySet(Item);
184
Generator
.AddError(
277
Generator
.FixUps.Add(new FixUp(Item.Name + "." + _onContextCreatedString, FixUpType.MarkAbstractMethodAsPartial));
295
Generator
.AttributeEmitter.EmitGeneratedCodeAttribute(codeField);
300
CodeTypeReference genericParameter =
Generator
.GetLeastPossibleQualifiedTypeReference(set.ElementType);
326
Generator
.AttributeEmitter.EmitGeneratedCodeAttribute(codeProperty);
338
CodeTypeReference genericParameter =
Generator
.GetLeastPossibleQualifiedTypeReference(set.ElementType);
344
Generator
.RaisePropertyGeneratedEvent(eventArgs);
360
Generator
.AddError(Strings.InvalidAttributeSuppliedForProperty(Item.Name),
379
Generator
.AddError(Strings.InvalidGetStatementSuppliedForProperty(Item.Name),
434
Generator
.AttributeEmitter.EmitGeneratedCodeAttribute(codeMethod);
440
parameter.Type =
Generator
.GetLeastPossibleQualifiedTypeReference(set.ElementType);
498
Generator
.AttributeEmitter.EmitGeneratedCodeAttribute(method);
503
this.
Generator
.IsLanguageCaseSensitive,
513
CodeTypeReference elementType =
Generator
.GetLeastPossibleQualifiedTypeReference(returnType);
System\Data\EntityModel\Emitters\EntityTypeEmitter.cs (2)
47
NavigationPropertyEmitter navigationPropertyEmitter = new NavigationPropertyEmitter(
Generator
, navigationProperty, UsingStandardBaseClass);
78
Generator
.AttributeEmitter.EmitTypeAttributes( this, typeDecl );
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (6)
64
string namespaceName =
Generator
.SourceObjectNamespaceName;
80
if (this.
Generator
.Language == System.Data.Entity.Design.LanguageOption.GenerateVBCode) //The GUID is only added in VB
92
foreach (GlobalItem element in
Generator
.GetSourceTypes())
120
return
Generator
.CompileUnit;
148
this.
Generator
.AddError(Strings.DuplicateClassName(type, name, cache[name]), ModelBuilderErrorCode.DuplicateClassName,
166
return pair.Second(
Generator
, element );
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (14)
83
this.
Generator
.RaisePropertyGeneratedEvent(eventArgs);
94
Generator
.AttributeEmitter.EmitGeneratedCodeAttribute(property);
98
Generator
.AttributeEmitter.EmitNavigationPropertyAttributes(
Generator
, target, property, eventArgs.AdditionalAttributes);
113
if (IsNameAlreadyAMemberName(Item.DeclaringType, property.Name,
Generator
.LanguageAppropriateStringComparer))
115
Generator
.AddError(Strings.GeneratedNavigationPropertyNameConflict(Item.Name, Item.DeclaringType.Name, property.Name),
138
PropertyEmitter.AddGetterSetterFixUp(
Generator
.FixUps, GetFullyQualifiedPropertyName(property.Name),
140
PropertyEmitter.AddGetterSetterFixUp(
Generator
.FixUps, GetFullyQualifiedPropertyName(property.Name),
157
Generator
.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
186
initReferenceMethod.TypeArguments.Add(
Generator
.GetLeastPossibleQualifiedTypeReference(GetEntityType(target)));
233
initCollectionMethod.TypeArguments.Add(
Generator
.GetLeastPossibleQualifiedTypeReference(GetEntityType(target)));
263
Generator
.AddError(Strings.InvalidGetStatementSuppliedForProperty(Item.Name),
314
CodeTypeReference returnType =
Generator
.GetLeastPossibleQualifiedTypeReference(GetEntityType(target));
352
getMethod.TypeArguments.Add(
Generator
.GetLeastPossibleQualifiedTypeReference(GetEntityType(target)));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (14)
64
this.
Generator
.RaisePropertyGeneratedEvent(eventArgs);
95
Generator
.AttributeEmitter.EmitGeneratedCodeAttribute(onChangingDomMethod);
103
Generator
.AttributeEmitter.EmitGeneratedCodeAttribute(onChangedDomMethod);
109
Generator
.FixUps.Add(new FixUp(PropertyClassName + "." + OnChangingPartialMethodName(PropertyName), FixUpType.MarkAbstractMethodAsPartial));
110
Generator
.FixUps.Add(new FixUp(PropertyClassName + "." + OnChangedPartialMethodName(PropertyName), FixUpType.MarkAbstractMethodAsPartial));
116
Generator
.AttributeEmitter.EmitGeneratedCodeAttribute(memberField);
129
Generator
.AttributeEmitter.EmitGeneratedCodeAttribute(complexInitField);
191
Generator
.AttributeEmitter.EmitPropertyAttributes(this, memberProperty, additionalAttributes);
215
Generator
.AddError(Strings.InvalidGetStatementSuppliedForProperty(Item.Name),
224
AddGetterSetterFixUp(
Generator
.FixUps, PropertyFQName, GetGetterAccessibility(Item), access, true);
292
AddGetterSetterFixUp(
Generator
.FixUps, PropertyFQName, GetSetterAccessibility(Item), access, false);
327
Generator
.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
577
types = new PropertyTypeReferences(TypeReference, (ComplexType)propertyType,
Generator
);
589
types = new PropertyTypeReferences(TypeReference, (ComplexType)typeUsage.EdmType, GetCollectionKind(property.TypeUsage),
Generator
);
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (4)
42
Generator
.VerifyLanguageCaseSensitiveCompatibilityForProperty(Item as EdmMember);
55
Generator
.AddError(System.Data.Entity.Design.Strings.GeneratedPropertyAccessibilityConflict(Item.Name, "Internal", "Protected"),
62
Generator
.AddError(System.Data.Entity.Design.Strings.GeneratedPropertyAccessibilityConflict(Item.Name, "Protected", "Internal"),
82
if (_declaringTypeUsesStandardBaseType && Utils.DoesTypeReserveMemberName(Item.DeclaringType, name,
Generator
.LanguageAppropriateStringComparer))
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (5)
50
Generator
.AttributeEmitter.EmitTypeAttributes( this, typeDecl );
60
Generator
.VerifyLanguageCaseSensitiveCompatibilityForType(Item);
80
Generator
.AddError(Strings.InvalidAttributeSuppliedForType(itemName),
111
Generator
.AddError(Strings.InvalidInterfaceSuppliedForType(itemName),
136
Generator
.AddError(Strings.InvalidMemberSuppliedForType(itemName),
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (9)
49
this.
Generator
.RaiseTypeGeneratedEvent(eventArgs);
98
return
Generator
.GetLeastPossibleQualifiedTypeReference(Item.BaseType);
117
Generator
.AttributeEmitter.EmitTypeAttributes(this, typeDecl);
130
PropertyEmitter propertyEmitter = new PropertyEmitter(
Generator
, property, _usingStandardBaseClass);
166
Generator
.AttributeEmitter.EmitGeneratedCodeAttribute(method);
169
UniqueIdentifierService uniqueIdentifierService = new UniqueIdentifierService(
Generator
.IsLanguageCaseSensitive, name => Utils.FixParameterName(name));
175
if (NavigationPropertyEmitter.IsNameAlreadyAMemberName(Item, method.Name,
Generator
.LanguageAppropriateStringComparer))
177
Generator
.AddError(Strings.GeneratedFactoryMethodNameConflict(method.Name, Item.Name),
198
PropertyEmitter propertyEmitter = new PropertyEmitter(
Generator
, property, UsingStandardBaseClass);