This project is read-only.

3 remarks

Mar 28, 2009 at 12:13 PM
I have 3 remarks.

1. A small typo:  

DbDeadlockDetectMode

 

.Deafult

should be 

DbDeadlockDetectMode.Default

2. In the sample code I see:

 

 

IEnumerator<DbXmlValue> itm = res.GetEnumerator();
while (itm.MoveNext())
{
Console.WriteLine(itm.Current.asString());
}

Most people use:

 

 

foreach(DbXmlValue dbXmlValue in res)
{
Console.WriteLine(dbXmlValue.asString());
}

3. Why does class DbXmlValue implement interface IDisposable? Do I really need to dispose every instance of this class?

I can understand that a transaction needs to be disposed but DbXmlValue should not implement IDisposable.