TechTalk Genome Wire Object Protocol v4.2

WopSerializerAttribute.GenerateFactoryMethod Property

Gets or sets the value specifying if "CreateInstance" method has to be generated in the serializer class.

public bool GenerateFactoryMethod {get; set;}

Property Value

true if "CreateInstance" method has to be generated, false otherwise. The default value is true.

Remarks

The generated "CreateInstance" method can create a new instance of the persistent type this attribute is bound to. The method uses a DTO object to set the properties of the new instance.

The factorty method calls the default constructor of the persistent class. If the class does not have default constructor defined, no factory method will be generated for the class regardless of this setting.

Requirements

Namespace: TechTalk.Genome.Wop

Assembly: TechTalk.Genome.Wop (in TechTalk.Genome.Wop.dll)

Version: 4.2.11.59

Editions: Professional, Community, Evaluation

See Also

WopSerializerAttribute Class | TechTalk.Genome.Wop Namespace