System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (17)
51CodeMemberProperty property = EmitNavigationProperty(Item.ToEndMember);
54EmitField(typeDecl, GetReturnType(Item.ToEndMember), Item.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many);
59CodeMemberField memberField = new CodeMemberField(fieldType, Utils.FieldNameFromPropName(Item.Name));
100PropertyGeneratedEventArgs eventArgs = new PropertyGeneratedEventArgs(Item,
120CommentEmitter.EmitSummaryComments(Item, property.Comments);
122property.Name = Item.Name;
140property.Attributes |= AccessibilityFromGettersAndSetters(Item);
153Generator.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
182PropertyEmitter.GetGetterAccessibility(Item), propertyAccessibility, true);
184PropertyEmitter.GetSetterAccessibility(Item), propertyAccessibility, false);
195Generator.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
204property.Attributes |= PropertyEmitter.GetGetterAccessibility(Item);
245Generator.AddError(Strings.InvalidSetStatementSuppliedForProperty(Item.Name),
264Generator.AddError(Strings.InvalidGetStatementSuppliedForProperty(Item.Name),
292return Item.DeclaringType.FullName + "." + propertyName;
339return new CodeFieldReferenceExpression(ThisRef, Utils.FieldNameFromPropName(Item.Name));