<p>I was just wondering if there are any good work-arounds for Deserializing private fields/properties using XmlSerializer.Deserialize() ?</p>

<p>Currently, I Deserialize my XML to a simple disposable type with all public properties, then I load the complex type that has private properties like this:</p>

<pre><code>ComplexType complex = new ComplexType(SimpleType);
</code></pre>

<p>and the constructor of ComplexType looks like this:</p>

<pre><code>public ComplexType(SimpleType simpleType){
    this.Property1 = simpleType.Property1;
    this.Property2 = simpleType.Property2;
    .....

}
</code></pre>

<p>Anyone has a better way of doing this?</p>

MySQL doesn't support milliseconds in any of the time / date columns, or return it in
```
NOW()
```
so unfortunately, no.
If you have a string in a date / time + microseconds format you can use
```
SELECT MICROSECOND('1997-12-31 23:59:59.000010');
```
to extract the microseconds.