SqlGeometry has bad SqlSuperType and is not serializable

Description

SqlGeometryType is based on Byte, but it is a binary. It sometimes breaks update queries. Pls correct constructor to this:

public SqlGeometryType()
// Pass any SqlType to base class.
: base(SqlTypeFactory.GetBinary(-1))
{
}

Also decorate custom type with SerializableAttribute.

Thanx

Environment

None

Activity

Show:

Ricardo Stuven March 8, 2009 at 9:45 PM

Resolved in revision 728.
Added Serializable attribute to SqlGeometryType, but not implemented suggested change to base(SqlTypeFactory.GetBinary(-1)) as it break schema generation.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created November 26, 2008 at 6:59 AM
Updated March 8, 2009 at 9:45 PM
Resolved March 8, 2009 at 9:45 PM
Who's Looking?