System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (16)
57CodeMemberProperty property = EmitNavigationProperty(Item.ToEndMember, false);
60if (Item.ToEndMember.RelationshipMultiplicity != RelationshipMultiplicity.Many)
63property = EmitNavigationProperty(Item.ToEndMember, true);
80PropertyGeneratedEventArgs eventArgs = new PropertyGeneratedEventArgs(Item,
107CommentEmitter.EmitSummaryComments(Item, property.Comments);
109property.Name = Item.Name;
113if (IsNameAlreadyAMemberName(Item.DeclaringType, property.Name, Generator.LanguageAppropriateStringComparer))
115Generator.AddError(Strings.GeneratedNavigationPropertyNameConflict(Item.Name, Item.DeclaringType.Name, property.Name),
117EdmSchemaErrorSeverity.Error, Item.DeclaringType.FullName, property.Name);
135property.Attributes |= AccessibilityFromGettersAndSetters(Item);
139PropertyEmitter.GetGetterAccessibility(Item), propertyAccessibility, true);
141PropertyEmitter.GetSetterAccessibility(Item), propertyAccessibility, false);
157Generator.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
263Generator.AddError(Strings.InvalidGetStatementSuppliedForProperty(Item.Name),
291return Item.DeclaringType.FullName + "." + propertyName;