1 write to _writer
System.Data.Entity.Design (1)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
38
_writer
= writer;
100 references to _writer
System.Data.Entity.Design (100)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (100)
154
_writer
.WriteStartElement(function.IsFunctionImport ? XmlConstants.FunctionImport : XmlConstants.Function);
155
_writer
.WriteAttributeString(XmlConstants.Name, function.Name);
175
_writer
.WriteAttributeString(XmlConstants.ReturnType, typeName);
182
_writer
.WriteAttributeString(XmlConstants.AggregateAttribute, GetAttributeValueString(function.AggregateAttribute));
183
_writer
.WriteAttributeString(XmlConstants.BuiltInAttribute, GetAttributeValueString(function.BuiltInAttribute));
184
_writer
.WriteAttributeString(XmlConstants.NiladicFunction, GetAttributeValueString(function.NiladicFunctionAttribute));
185
_writer
.WriteAttributeString(XmlConstants.IsComposable, GetAttributeValueString(function.IsComposableAttribute));
186
_writer
.WriteAttributeString(XmlConstants.ParameterTypeSemantics, GetAttributeValueString(function.ParameterTypeSemanticsAttribute));
191
_writer
.WriteAttributeString(XmlConstants.IsComposable, GetAttributeValueString(true));
196
_writer
.WriteAttributeString(XmlConstants.StoreFunctionName, function.StoreFunctionNameAttribute);
202
_writer
.WriteAttributeString(XmlConstants.CommandText, function.CommandTextAttribute);
207
_writer
.WriteAttributeString(XmlConstants.Schema, function.Schema);
225
_writer
.WriteStartElement(XmlConstants.ReturnType);
226
_writer
.WriteStartElement(XmlConstants.CollectionType);
228
_writer
.WriteEndElement();
229
_writer
.WriteEndElement();
235
_writer
.WriteEndElement();
240
_writer
.WriteStartElement(XmlConstants.Parameter);
241
_writer
.WriteAttributeString(XmlConstants.Name, parameter.Name);
242
_writer
.WriteAttributeString(XmlConstants.TypeAttribute, GetFullName(parameter.TypeUsage.EdmType));
245
_writer
.WriteAttributeString(XmlConstants.Mode, GetAttributeValueString(parameter.Mode));
247
_writer
.WriteEndElement();
253
_writer
.WriteStartElement(XmlConstants.ComplexType);
254
_writer
.WriteAttributeString(XmlConstants.Name, complexType.Name);
257
_writer
.WriteAttributeString(XmlConstants.BaseType, GetFullName(complexType.BaseType));
264
_writer
.WriteEndElement();
269
_writer
.WriteStartElement(XmlConstants.Association);
270
_writer
.WriteAttributeString(XmlConstants.Name, associationType.Name);
281
_writer
.WriteEndElement();
286
_writer
.WriteStartElement(XmlConstants.RowType);
291
_writer
.WriteEndElement();
296
_writer
.WriteStartElement(XmlConstants.ReferentialConstraint);
299
_writer
.WriteEndElement();
305
_writer
.WriteStartElement(nodeName);
306
_writer
.WriteAttributeString(XmlConstants.Role, end.Name);
309
_writer
.WriteStartElement(XmlConstants.PropertyRef);
310
_writer
.WriteAttributeString(XmlConstants.Name, properties[i].Name);
311
_writer
.WriteEndElement();
313
_writer
.WriteEndElement();
318
_writer
.WriteStartElement(XmlConstants.End);
319
_writer
.WriteAttributeString(XmlConstants.Role, end.Name);
322
_writer
.WriteAttributeString(XmlConstants.TypeAttribute, typeName);
323
_writer
.WriteAttributeString(XmlConstants.Multiplicity, GetXmlMultiplicity(end.RelationshipMultiplicity));
328
_writer
.WriteEndElement();
333
_writer
.WriteStartElement(elementName);
334
_writer
.WriteAttributeString(XmlConstants.Action, operationAction.ToString());
335
_writer
.WriteEndElement();
356
_writer
.WriteStartElement(XmlConstants.EntityType);
357
_writer
.WriteAttributeString(XmlConstants.Name, entityType.Name);
360
_writer
.WriteAttributeString(XmlConstants.BaseType, GetFullName(entityType.BaseType));
365
_writer
.WriteAttributeString(XmlConstants.Abstract, XmlConstants.True);
371
_writer
.WriteStartElement(XmlConstants.Key);
374
_writer
.WriteStartElement(XmlConstants.PropertyRef);
375
_writer
.WriteAttributeString(XmlConstants.Name, entityType.KeyMembers[i].Name);
376
_writer
.WriteEndElement();
378
_writer
.WriteEndElement();
393
_writer
.WriteEndElement();
409
_writer
.WriteComment(builder.ToString());
415
_writer
.WriteStartElement(XmlConstants.NavigationProperty);
416
_writer
.WriteAttributeString(XmlConstants.Name, member.Name);
417
_writer
.WriteAttributeString(XmlConstants.Relationship, member.RelationshipType.FullName);
418
_writer
.WriteAttributeString(XmlConstants.FromRole, member.FromEndMember.Name);
419
_writer
.WriteAttributeString(XmlConstants.ToRole, member.ToEndMember.Name);
420
_writer
.WriteEndElement();
425
_writer
.WriteStartElement(XmlConstants.Property);
426
_writer
.WriteAttributeString(XmlConstants.Name, member.Name);
427
_writer
.WriteAttributeString(XmlConstants.TypeAttribute, GetTypeName(member.TypeUsage));
435
_writer
.WriteAttributeString(
443
_writer
.WriteEndElement();
493
_writer
.WriteAttributeString(TranslateFacetNameToAttributeName(facet.Name), XmlConstants.Max);
498
_writer
.WriteAttributeString(TranslateFacetNameToAttributeName(facet.Name), GetAttributeValueString(facet.Value));
640
_writer
.WriteStartElement(XmlConstants.Schema, xmlNamespace);
641
_writer
.WriteAttributeString(XmlConstants.Namespace, schemaNamespace);
642
_writer
.WriteAttributeString(XmlConstants.Alias, "Self");
645
_writer
.WriteAttributeString(XmlConstants.UseStrongSpatialTypes, XmlConstants.AnnotationNamespace, XmlConstants.False);
651
_writer
.WriteAttributeString(XmlConstants.Provider, provider);
656
_writer
.WriteAttributeString(XmlConstants.ProviderManifestToken, providerManifestToken);
664
_writer
.WriteAttributeString("xmlns", xmlPrefixToNamespace.Key, null, xmlPrefixToNamespace.Value);
670
_writer
.WriteStartElement(XmlConstants.EntityContainer);
671
_writer
.WriteAttributeString(XmlConstants.Name, container.Name);
678
_writer
.WriteAttributeString(
706
_writer
.WriteEndElement();
711
_writer
.WriteStartElement(XmlConstants.AssociationSet);
712
_writer
.WriteAttributeString(XmlConstants.Name, associationSet.Name);
713
_writer
.WriteAttributeString(XmlConstants.Association, GetFullName(associationSet.ElementType));
719
_writer
.WriteEndElement();
724
_writer
.WriteStartElement(XmlConstants.End);
725
_writer
.WriteAttributeString(XmlConstants.Role, end.Name);
726
_writer
.WriteAttributeString(XmlConstants.EntitySet, end.EntitySet.Name);
727
_writer
.WriteEndElement();
732
_writer
.WriteStartElement(XmlConstants.EntitySet);
733
_writer
.WriteAttributeString(XmlConstants.Name, entitySet.Name);
734
_writer
.WriteAttributeString(XmlConstants.EntityType, GetFullName(entitySet.ElementType));
741
_writer
.WriteStartElement(XmlConstants.DefiningQuery);
742
_writer
.WriteString(entitySet.DefiningQuery);
743
_writer
.WriteEndElement();
750
_writer
.WriteAttributeString(property.Name, property.Value.ToString());
756
_writer
.WriteAttributeString(property.Name, property.Value.ToString());
761
_writer
.WriteEndElement();
771
_writer
.WriteAttributeString(attributeName, xmlNamespace, property.Value.ToString());