示例#1
0
 private void Write(GeneratedEdmModelLoadModelFromStringMethod method)
 {
     WriteSignature(method);
     using (_builder.IndentBraced)
     {
         _("global::System.Xml.XmlReader reader = CreateXmlReader(Edmx);");
         _("try");
         using (_builder.IndentBraced)
         {
             _("return global::Microsoft.OData.Edm.Csdl.EdmxReader.Parse(reader);");
         }
         _("finally");
         using (_builder.IndentBraced)
         {
             _("((global::System.IDisposable)(reader)).Dispose();");
         }
     }
 }
示例#2
0
 private void Write(GeneratedEdmModelLoadModelFromStringMethod method)
 {
     WriteSignature(method);
     using (_builder.IndentBraced)
     {
         _("global::System.Xml.XmlReader reader = CreateXmlReader(Edmx);");
         _("try");
         using (_builder.IndentBraced)
         {
             _("return global::Microsoft.OData.Edm.Csdl.EdmxReader.Parse(reader);");
         }
         _("finally");
         using (_builder.IndentBraced)
         {
             _("((global::System.IDisposable)(reader)).Dispose();");
         }
     }
 }