EntityClassGenerator.GenerateCode Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Létrehoz egy forráskódfájlt, amely tartalmazza a fogalmi sémadefiníciós nyelv (CSDL) fájlból létrehozott objektumokat.
Túlterhelések
| Name | Description |
|---|---|
| GenerateCode(String, String) |
Létrehoz egy forráskódfájlt, amely tartalmazza a megadott fogalmi sémadefiníciós (CSDL) fájlból létrehozott objektumokat. |
| GenerateCode(XmlReader, TextWriter) |
Forráskódot hoz létre az objektumban XmlReader található fogalmi sémadefiníciós nyelv (CSDL) fájl használatával, és a létrehozott forráskódot egy TextWriter. |
| GenerateCode(String, String, IEnumerable<String>) |
Forráskódot hoz létre a megadott fogalmi sémadefiníciós nyelv (CSDL) fájl használatával. A sémafájl elérési útjainak listája a CSDL-fájlban található hivatkozások feloldására szolgál. |
| GenerateCode(XmlReader, TextWriter, IEnumerable<XmlReader>) |
Forráskódot hoz létre az objektum fogalmi sémadefiníciós (CSDL) fájlja XmlReader alapján, majd a létrehozott forráskódot egy TextWriter. Az IList objektumok egy része XmlReader a CSDL-fájlban található hivatkozások feloldására szolgál. |
GenerateCode(String, String)
Létrehoz egy forráskódfájlt, amely tartalmazza a megadott fogalmi sémadefiníciós (CSDL) fájlból létrehozott objektumokat.
public:
System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateCode(System::String ^ sourceEdmSchemaFilePath, System::String ^ targetFilePath);
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateCode(string sourceEdmSchemaFilePath, string targetFilePath);
member this.GenerateCode : string * string -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateCode (sourceEdmSchemaFilePath As String, targetFilePath As String) As IList(Of EdmSchemaError)
Paraméterek
- sourceEdmSchemaFilePath
- String
A CSDL-fájl elérési útja.
- targetFilePath
- String
A létrehozott forráskódfájl elérési útja.
Válaszok
Ez IList tartalmazza az EdmSchemaError esetlegesen generált hibákat.
A következőre érvényes:
GenerateCode(XmlReader, TextWriter)
Forráskódot hoz létre az objektumban XmlReader található fogalmi sémadefiníciós nyelv (CSDL) fájl használatával, és a létrehozott forráskódot egy TextWriter.
public:
System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateCode(System::Xml::XmlReader ^ sourceEdmSchema, System::IO::TextWriter ^ target);
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateCode(System.Xml.XmlReader sourceEdmSchema, System.IO.TextWriter target);
member this.GenerateCode : System.Xml.XmlReader * System.IO.TextWriter -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateCode (sourceEdmSchema As XmlReader, target As TextWriter) As IList(Of EdmSchemaError)
Paraméterek
- target
- TextWriter
A TextWriter forráskód megírásának célja.
Válaszok
Ez IList tartalmazza az EdmSchemaError esetlegesen generált hibákat.
A következőre érvényes:
GenerateCode(String, String, IEnumerable<String>)
Forráskódot hoz létre a megadott fogalmi sémadefiníciós nyelv (CSDL) fájl használatával. A sémafájl elérési útjainak listája a CSDL-fájlban található hivatkozások feloldására szolgál.
public:
System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateCode(System::String ^ sourceEdmSchemaFilePath, System::String ^ targetPath, System::Collections::Generic::IEnumerable<System::String ^> ^ additionalEdmSchemaFilePaths);
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateCode(string sourceEdmSchemaFilePath, string targetPath, System.Collections.Generic.IEnumerable<string> additionalEdmSchemaFilePaths);
member this.GenerateCode : string * string * seq<string> -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateCode (sourceEdmSchemaFilePath As String, targetPath As String, additionalEdmSchemaFilePaths As IEnumerable(Of String)) As IList(Of EdmSchemaError)
Paraméterek
- sourceEdmSchemaFilePath
- String
A CSDL-fájl elérési útja.
- targetPath
- String
A létrehozott forráskódfájl elérési útja.
- additionalEdmSchemaFilePaths
- IEnumerable<String>
A forrásséma (a CSDL-fájl) hivatkozásainak feloldására használható sémafájl elérési útjainak listája. Ha a forrásséma nem rendelkezik függőségekkel, adjon meg egy üres listát.
Válaszok
IList A EdmSchemaError létrehozott hibákat tartalmazó objektumok egyike.
A következőre érvényes:
GenerateCode(XmlReader, TextWriter, IEnumerable<XmlReader>)
Forráskódot hoz létre az objektum fogalmi sémadefiníciós (CSDL) fájlja XmlReader alapján, majd a létrehozott forráskódot egy TextWriter. Az IList objektumok egy része XmlReader a CSDL-fájlban található hivatkozások feloldására szolgál.
public:
System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateCode(System::Xml::XmlReader ^ sourceEdmSchema, System::IO::TextWriter ^ target, System::Collections::Generic::IEnumerable<System::Xml::XmlReader ^> ^ additionalEdmSchemas);
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateCode(System.Xml.XmlReader sourceEdmSchema, System.IO.TextWriter target, System.Collections.Generic.IEnumerable<System.Xml.XmlReader> additionalEdmSchemas);
member this.GenerateCode : System.Xml.XmlReader * System.IO.TextWriter * seq<System.Xml.XmlReader> -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateCode (sourceEdmSchema As XmlReader, target As TextWriter, additionalEdmSchemas As IEnumerable(Of XmlReader)) As IList(Of EdmSchemaError)
Paraméterek
- target
- TextWriter
A TextWriter létrehozott forráskód kimenete.
- additionalEdmSchemas
- IEnumerable<XmlReader>
A forrásséma (a CSDL-fájl) által hivatkozott sémákat tartalmazó objektumok listája XmlReader . Ha a forrásséma nem rendelkezik függőségekkel, adjon át egy üres IList objektumot.
Válaszok
A létrehozott hibákat tartalmazó objektumok listája EdmSchemaError .