1 write to Generator
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\Emitter.cs (1)
40
Generator
= generator;
83 references to Generator
System.Data.Services.Design (83)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (3)
56
if (emitter.
Generator
.Version != DataServiceCodeVersion.V1)
58
EmitEpmAttributesForEntityType(emitter.
Generator
.EdmItemCollection, emitter.Item, typeDecl);
109
emitter.
Generator
.AddError(Strings.InvalidAttributeSuppliedForProperty(emitter.Item.Name),
System\Data\EntityModel\Emitters\ComplexTypeEmitter.cs (1)
38
Generator
.AttributeEmitter.EmitTypeAttributes( this, typeDecl );
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (20)
62
Generator
.RaiseTypeGeneratedEvent(eventArgs);
78
bool needTypeMapper = (0 < this.
Generator
.NamespaceMap.Count);
80
var q = from a in this.
Generator
.EdmItemCollection.GetItems<StructuralType>()
133
Generator
.VerifyLanguageCaseSensitiveCompatibilityForEntitySet(Item);
150
Generator
.AddError(
239
Generator
.FixUps.Add(new FixUp(Item.Name + "." + _onContextCreatedString, FixUpType.MarkAbstractMethodAsPartial));
245
if (this.
Generator
.Language == LanguageOption.GenerateVBCode)
252
Enum.GetName(typeof(StringComparison), this.
Generator
.LanguageAppropriateStringComparer));
267
var pairs = this.
Generator
.NamespaceMap.OrderByDescending(p => p.Key.Length).ThenBy(p => p.Key);
328
var reversePairs =
Generator
.NamespaceMap.OrderByDescending(p => p.Value.Length).ThenBy(p => p.Key);
367
if (this.
Generator
.Language == LanguageOption.GenerateVBCode)
407
string containerNamespace =
Generator
.GetClientTypeNamespace(this.
Generator
.GetContainerNamespace(container));
434
if (this.
Generator
.Language == LanguageOption.GenerateVBCode)
461
CodeTypeReference genericParameter =
Generator
.GetLeastPossibleQualifiedTypeReference(set.ElementType);
499
CodeTypeReference genericParameter =
Generator
.GetLeastPossibleQualifiedTypeReference(set.ElementType);
505
Generator
.RaisePropertyGeneratedEvent(eventArgs);
521
Generator
.AddError(Strings.InvalidAttributeSuppliedForProperty(Item.Name),
540
Generator
.AddError(Strings.InvalidGetStatementSuppliedForProperty(Item.Name),
601
parameter.Type =
Generator
.GetLeastPossibleQualifiedTypeReference(set.ElementType);
System\Data\EntityModel\Emitters\EntityTypeEmitter.cs (2)
45
NavigationPropertyEmitter navigationPropertyEmitter = new NavigationPropertyEmitter(
Generator
, navigationProperty, UsingStandardBaseClass);
79
Generator
.AttributeEmitter.EmitTypeAttributes(this, typeDecl);
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (18)
59
EntityContainer defaultContainer = this.
Generator
.EdmItemCollection
62
this.
Generator
.DefaultContainerNamespace = this.
Generator
.GetContainerNamespace(defaultContainer);
64
this.BuildNamespaceMap(this.
Generator
.DefaultContainerNamespace);
66
foreach (EntityContainer container in this.
Generator
.EdmItemCollection.GetItems<EntityContainer>())
68
string namespaceName = this.
Generator
.GetContainerNamespace(container);
73
foreach (GlobalItem element in
Generator
.GetSourceTypes())
97
foreach (string namespaceName in (from x in this.
Generator
.EdmItemCollection.GetItems<EdmType>() select x.NamespaceName).Distinct())
102
foreach (GlobalItem element in
Generator
.GetSourceTypes())
117
clientNamespace = this.
Generator
.GetClientTypeNamespace(namespaceName);
130
Generator
.SourceEdmNamespaceName = namespaceName;
156
Generator
.SourceEdmNamespaceName = null;
170
return
Generator
.CompileUnit;
198
this.
Generator
.AddError(Strings.DuplicateClassName(type, name, cache[name]), ModelBuilderErrorCode.DuplicateClassName, EdmSchemaErrorSeverity.Error);
215
return pair.Second(
Generator
, element);
255
if (!string.IsNullOrEmpty(this.
Generator
.NamespacePrefix))
257
var namespaceMap = this.
Generator
.GetSourceTypes()
270
this.
Generator
.NamespaceMap.Add(i.ServiceNamespace, i.ClientNamespace);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (11)
66
if (this.
Generator
.UseDataServiceCollection)
103
this.
Generator
.RaisePropertyGeneratedEvent(eventArgs);
153
Generator
.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
181
PropertyEmitter.AddGetterSetterFixUp(
Generator
.FixUps, GetFullyQualifiedPropertyName(property.Name),
183
PropertyEmitter.AddGetterSetterFixUp(
Generator
.FixUps, GetFullyQualifiedPropertyName(property.Name),
195
Generator
.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
220
if (this.
Generator
.UseDataServiceCollection == true)
245
Generator
.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
264
Generator
.AddError(Strings.InvalidGetStatementSuppliedForProperty(Item.Name),
315
CodeTypeReference returnType =
Generator
.GetLeastPossibleQualifiedTypeReference(GetEntityType(target));
319
returnType = TypeReference.FrameworkGenericClass(this.
Generator
.GetRelationshipMultiplicityManyCollectionTypeName(), returnType);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (11)
70
this.
Generator
.RaisePropertyGeneratedEvent(eventArgs);
114
Generator
.FixUps.Add(new FixUp(PropertyClassName + "." + OnChangingPartialMethodName(PropertyName), FixUpType.MarkAbstractMethodAsPartial));
115
Generator
.FixUps.Add(new FixUp(PropertyClassName + "." + OnChangedPartialMethodName(PropertyName), FixUpType.MarkAbstractMethodAsPartial));
187
Generator
.AttributeEmitter.EmitPropertyAttributes(this, memberProperty, additionalAttributes);
211
Generator
.AddError(Strings.InvalidGetStatementSuppliedForProperty(Item.Name),
220
AddGetterSetterFixUp(
Generator
.FixUps, PropertyFQName, GetGetterAccessibility(Item), access, true);
324
AddGetterSetterFixUp(
Generator
.FixUps, PropertyFQName, GetSetterAccessibility(Item), access, false);
351
Generator
.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
391
Generator
.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
502
types = new PropertyTypeReferences(TypeReference, (ComplexType)propertyType,
Generator
);
514
types = new PropertyTypeReferences(TypeReference, (ComplexType)typeUsage.EdmType, GetCollectionKind(property.TypeUsage),
Generator
);
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (4)
39
Generator
.VerifyLanguageCaseSensitiveCompatibilityForProperty(Item as EdmMember);
52
Generator
.AddError(Strings.GeneratedPropertyAccessibilityConflict(Item.Name, "Internal", "Protected"),
59
Generator
.AddError(Strings.GeneratedPropertyAccessibilityConflict(Item.Name, "Protected", "Internal"),
77
if (_declaringTypeUsesStandardBaseType && Utils.DoesTypeReserveMemberName(Item.DeclaringType, name,
Generator
.LanguageAppropriateStringComparer))
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (5)
43
Generator
.AttributeEmitter.EmitTypeAttributes( this, typeDecl );
53
Generator
.VerifyLanguageCaseSensitiveCompatibilityForType(Item);
73
Generator
.AddError(Strings.InvalidAttributeSuppliedForType(itemName),
104
Generator
.AddError(Strings.InvalidInterfaceSuppliedForType(itemName),
129
Generator
.AddError(Strings.InvalidMemberSuppliedForType(itemName),
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (8)
40
this.
Generator
.RaiseTypeGeneratedEvent(eventArgs);
89
return
Generator
.GetLeastPossibleQualifiedTypeReference(Item.BaseType);
108
Generator
.AttributeEmitter.EmitTypeAttributes(this, typeDecl);
123
PropertyEmitter propertyEmitter = new PropertyEmitter(
Generator
, property, _usingStandardBaseClass);
159
UniqueIdentifierService uniqueIdentifierService = new UniqueIdentifierService(
Generator
.IsLanguageCaseSensitive);
165
if (NavigationPropertyEmitter.IsNameAlreadyAMemberName(Item, method.Name,
Generator
.LanguageAppropriateStringComparer))
167
Generator
.AddError(Strings.GeneratedFactoryMethodNameConflict(method.Name, Item.Name),
189
PropertyEmitter propertyEmitter = new PropertyEmitter(
Generator
, property, UsingStandardBaseClass);