Beispiel #1
0
        public UtilsTests()
        {
            this.context  = new ODataT4CodeGenerator.CodeGenerationContext(@"<?xml version=""1.0"" encoding=""utf-8""?>
<edmx:Edmx Version=""4.0"" xmlns:edmx=""http://docs.oasis-open.org/odata/ns/edmx"">
  <edmx:DataServices>
    <Schema Namespace=""Namespace"" xmlns=""http://docs.oasis-open.org/odata/ns/edm"">
      <EntityContainer Name=""EntityContainer""/>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>", "NamespacePrefix");
            this.template = new ODataT4CodeGenerator.ODataClientCSharpTemplate(context);
        }
Beispiel #2
0
        public UtilsTests()
        {
            this.context = new ODataT4CodeGenerator.CodeGenerationContext(@"<?xml version=""1.0"" encoding=""utf-8""?>
<edmx:Edmx Version=""4.0"" xmlns:edmx=""http://docs.oasis-open.org/odata/ns/edmx"">
  <edmx:DataServices>
    <Schema Namespace=""Namespace"" xmlns=""http://docs.oasis-open.org/odata/ns/edm"">
      <EntityContainer Name=""EntityContainer""/>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>", "NamespacePrefix");
            this.template = new ODataT4CodeGenerator.ODataClientCSharpTemplate(context);
        }