C# 클래스 Thinktecture.Tools.Web.Services.CodeGeneration.DataContractGenerator

Generates the CodeDOM for data contracts.
상속: ICodeGenerator
파일 보기 프로젝트 열기: WSCF/WSCF 1 사용 예제들

공개 메소드들

메소드 설명
DataContractGenerator ( System.Xml.Serialization.XmlSchemas schemas, PrimaryCodeGenerationOptions options, CodeDomProvider codeProvider ) : System

Initializes a new instance of the DataContractGenerator class.

GenerateCode ( ) : CodeNamespace

Generates the data contracts for given xsd file(s).

비공개 메소드들

메소드 설명
CouldBeAnArray ( XmlSchemaType schematype ) : bool

Checks whether a given XmlSchemaType could be represented as an array. That is the XmlSchemaType has to be: 1. Complex type 2. ...with no base type 3. ...has no attributes 4. ...has only one element 5. ...whose maxOccurs is > 1

메소드 상세

DataContractGenerator() 공개 메소드

Initializes a new instance of the DataContractGenerator class.
public DataContractGenerator ( System.Xml.Serialization.XmlSchemas schemas, PrimaryCodeGenerationOptions options, CodeDomProvider codeProvider ) : System
schemas System.Xml.Serialization.XmlSchemas The XML schemas.
options PrimaryCodeGenerationOptions The code generation options.
codeProvider System.CodeDom.Compiler.CodeDomProvider The code provider.
리턴 System

GenerateCode() 공개 메소드

Generates the data contracts for given xsd file(s).
public GenerateCode ( ) : CodeNamespace
리턴 System.CodeDom.CodeNamespace