Hi Alex,
Regarding this issue, I would like to tell you that it is simple to create a
custom TransformerProvider deriving from XmlSerializerTransformer, you only
need to override its methods properties, like Deserialize, Serialize and
ConfigurationName. The tough one is to use it in Application blocks. To use
your customized XmlSerializerTransformer, you need to create your own
XmlSerializerTransformerData class or modify the source code of
XmlSerializerTransformerData. The dataTransformer is set in app.config file:
<dataTransformer xsi:type="XmlSerializerTransfo*rmerData" name="Xml
Serializer Transformer">
<includeTypes />
</dataTransformer>
If you created customized XmlSerializerTransformerData, you should change
value here.
If you don't want to create a customized XmlSerializerTransformerData, you
can modify its source code so that it will load your own.
XML SerializerTransformer:
XmlSerializerTransformerData.c*s:
[XmlIgnore]
public override string TypeName
{
get { return
typeof(XmlSerializerTransforme*r).AssemblyQualifie dName; }
set
{
}
}
Replace " XmlSerializerTransformer " with your own XmlSerializerTransformer
here.
Hope this helps.
Best Regards,
Mona [Grapecity]
"Alex" <in******@online.nospam> wrote in message
news:Os***************@TK2MSFTNGP11.phx.gbl...
Hello,
How can we create a custom TransformerProvider (deriving from
XmlSerializerTransformer with some minor changes) and make it work with the
Enterprise Library Configuration Application Block?
Thank you!
Best wishes,
Alex.
--
Address email to user "response" at domain "alexoren" with suffix "com"