Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support for XElement type #176

Open
softlion opened this Issue · 0 comments

1 participant

@softlion

in SqlType method

        if (clrType == typeof(XElement))
        {
            return "nvarchar"; //SQLite ignores the length //See http://www.sqlite.org/datatype3.html
        }

in BindParameter method

            else if (value is XElement)
            {
                SQLite3.BindText(stmt, index, (value as XElement).ToString(SaveOptions.DisableFormatting), -1, NegativePointer);
            }

in ReadCol method

        if (clrType == typeof(XElement))
        {
            var text = SQLite3.ColumnString(stmt, index);
            return text==null ? null : XElement.Parse(text);
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.