TechTalk Genome v4.2

<CodeGeneratedProxy> Element

Provides proxies for persistent types by generating and compiling proxy implementation during schema compilation.

<Type name=" type ">
<CodeGeneratedProxy />
</Type>
type
A class specifying a non-abstract persistent type.

Remarks

Marking the type with the <CodeGeneratedProxy> element will generate and compile proxy implementations for the type to support both context-bound and unbound proxies. The <CodeGeneratedProxy> element has no additional parameters.

The proxy classes derive from the type. All abstract members mapped to features supporting code-generation are implemented by the generated proxy. Proxy generation and compilation is part of schema compilation and the compiled proxy classes are part of the schema assembly created by the schema compiler .

Examples

Specifies the proxy provider for the Employee class.

                    
<Type name="Employee">
    ...
    <CodeGeneratedProxy />
    ...
</Type>
                

Requirements

Type: TechTalk.Genome.Mapping.CodeGeneratedProxyXmlData

Assembly: TechTalk.Genome.dll

Version: 4.2.11

Editions: Professional, Evaluation, Express

Database Platforms: Microsoft SQL Server 2000, Microsoft SQL Server 2005, Oracle 9i Release 2, Oracle 10g Release 2

See Also

<CodeGeneratedProxySettings> Element | Proxy Providers | <StaticProxy> Element | Context.Pin<S> | Context.Unpin<S>