EntityClassGenerator.GenerateCode Método
Definição
Gera código para o modelo de dados.Generates code for the data model.
Sobrecargas
| GenerateCode(XmlReader, String) |
Gera código para o modelo de objeto.Generates code for the object model. |
| GenerateCode(XmlReader, TextWriter, String) |
Gera código para o modelo de dados de comutadores identificados por parâmetros.Generates code for the data model from switches identified by parameters. |
GenerateCode(XmlReader, String)
Gera código para o modelo de objeto.Generates code for the object model.
public:
System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateCode(System::Xml::XmlReader ^ sourceReader, System::String ^ targetFilePath);
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateCode (System.Xml.XmlReader sourceReader, string targetFilePath);
member this.GenerateCode : System.Xml.XmlReader * string -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateCode (sourceReader As XmlReader, targetFilePath As String) As IList(Of EdmSchemaError)
Parâmetros
- sourceReader
- XmlReader
O objeto do leitor de XML.The XML reader object.
- targetFilePath
- String
A cadeia de caracteres que contém o caminho para o arquivo de destino.The string that contains the path to the target file.
Retornos
A lista de erros de esquema que ocorreram durante a geração.The list of schema errors that occurred during generation.
Aplica-se a
GenerateCode(XmlReader, TextWriter, String)
Gera código para o modelo de dados de comutadores identificados por parâmetros.Generates code for the data model from switches identified by parameters.
public:
System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateCode(System::Xml::XmlReader ^ sourceReader, System::IO::TextWriter ^ targetWriter, System::String ^ namespacePrefix);
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateCode (System.Xml.XmlReader sourceReader, System.IO.TextWriter targetWriter, string namespacePrefix);
member this.GenerateCode : System.Xml.XmlReader * System.IO.TextWriter * string -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateCode (sourceReader As XmlReader, targetWriter As TextWriter, namespacePrefix As String) As IList(Of EdmSchemaError)
Parâmetros
- sourceReader
- XmlReader
O objeto do leitor de XML.The XML reader object.
- targetWriter
- TextWriter
O objeto text writer.The text writer object.
- namespacePrefix
- String
A cadeia de caracteres que contém o prefixo de namespace.The string that contains the namespace prefix.
Retornos
A lista de erros de esquema que ocorreram durante a geração.The list of schema errors that occurred during generation.
Comentários
O namespacePrefix é usado como o único namespace para tipos no mesmo namespace que o contêiner padrão, ou como um prefixo para o namespace fornecido pelo servidor em todos os outros casos.The namespacePrefix is used as the only namespace for types in the same namespace as the default container, or as a prefix for the server-provided namespace in all other cases. Se namespacePrefix for null , os namespaces fornecidos pelo servidor serão usados para todos os tipos.If namespacePrefix is null, the server-provided namespaces are used for all types.