Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32076/SqlTypes Modified Files: AnsiStringFixedLengthSqlType.cs AnsiStringSqlType.cs BinaryBlobSqlType.cs BinarySqlType.cs BooleanSqlType.cs ByteSqlType.cs CurrencySqlType.cs DateSqlType.cs DateTimeSqlType.cs DecimalSqlType.cs DoubleSqlType.cs GuidSqlType.cs Int16SqlType.cs Int32SqlType.cs Int64SqlType.cs SingleSqlType.cs SqlType.cs StringClobSqlType.cs StringFixedLengthSqlType.cs StringSqlType.cs TimeSqlType.cs Added Files: SByteSqlType.cs Log Message: NH-151: added SByteSqlType Still need to add something to the Dialects for schema export. Added comments to the other SqlTypes. Index: AnsiStringFixedLengthSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/AnsiStringFixedLengthSqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AnsiStringFixedLengthSqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- AnsiStringFixedLengthSqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,17 **** { /// <summary> ! /// Summary description for AnsiStringFixedLengthSqlType. /// </summary> [Serializable] public class AnsiStringFixedLengthSqlType : SqlType { public AnsiStringFixedLengthSqlType() : base(DbType.AnsiStringFixedLength) { } public AnsiStringFixedLengthSqlType(int length) : base(DbType.AnsiStringFixedLength, length) { --- 5,30 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.AnsiStringFixedLength"/> with the ! /// information required to to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// This can store the length of the string that the <see cref="IDbDataParameter"/> can hold. + /// If no value is provided for the length then the <c>Driver</c> is responsible for + /// setting the properties on the <see cref="IDbDataParameter"/> correctly. + /// </remarks> [Serializable] public class AnsiStringFixedLengthSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="AnsiStringFixedLengthSqlType"/> class. + /// </summary> public AnsiStringFixedLengthSqlType() : base(DbType.AnsiStringFixedLength) { } + /// <summary> + /// Initializes a new instance of the <see cref="AnsiStringFixedLengthSqlType"/> class. + /// </summary> + /// <param name="length">The length of the string the <see cref="IDbDataParameter"/> should hold.</param> public AnsiStringFixedLengthSqlType(int length) : base(DbType.AnsiStringFixedLength, length) { Index: CurrencySqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/CurrencySqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CurrencySqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- CurrencySqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 2,17 **** using System.Data; ! namespace NHibernate.SqlTypes { ! /// <summary> ! /// Summary description for CurrencySqlType. ! /// ! /// TODO: determine if I want to remove this. There is no native .NET Currency class ! /// and the sql server money = decimal(19,4) and smallmoney = decimal(10,4). So there ! /// is no advantage to using it. /// </summary> [Serializable] public class CurrencySqlType : SqlType { public CurrencySqlType() : base(DbType.Currency) { --- 2,20 ---- using System.Data; ! namespace NHibernate.SqlTypes ! { /// <summary> ! /// Describes the details of a <see cref="DbType.Currency"/> with the ! /// information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Currency"/>. + /// </remarks> [Serializable] public class CurrencySqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="CurrencySqlType"/> class. + /// </summary> public CurrencySqlType() : base(DbType.Currency) { Index: SingleSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/SingleSqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SingleSqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- SingleSqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,13 **** { /// <summary> ! /// Summary description for SingleSqlType. /// </summary> [Serializable] public class SingleSqlType : SqlType { public SingleSqlType() : base(DbType.Single) { --- 5,20 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Single"/> with the ! /// extra information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Single"/>. + /// </remarks> [Serializable] public class SingleSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="SingleSqlType"/> class. + /// </summary> public SingleSqlType() : base(DbType.Single) { Index: DoubleSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/DoubleSqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DoubleSqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- DoubleSqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,13 **** { /// <summary> ! /// Summary description for DoubleSqlType. /// </summary> [Serializable] public class DoubleSqlType : SqlType { public DoubleSqlType() : base(DbType.Double) { --- 5,20 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Double"/> with the ! /// extra information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Double"/>. + /// </remarks> [Serializable] public class DoubleSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="DoubleSqlType"/> class. + /// </summary> public DoubleSqlType() : base(DbType.Double) { Index: BinaryBlobSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/BinaryBlobSqlType.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BinaryBlobSqlType.cs 25 Aug 2004 03:51:48 -0000 1.1 --- BinaryBlobSqlType.cs 11 Dec 2004 16:28:28 -0000 1.2 *************** *** 5,15 **** { /// <summary> ! /// A SqlType that uses a <see cref="DbType.Binary"/> to generate a Parameter ! /// for the IDriver to write a BLOB value to the database. /// </summary> /// <remarks> /// This is only needed by DataProviders (SqlClient) that need to specify a Size for the /// IDbDataParameter. Most DataProvider(Oralce) don't need to set the Size so a /// BinarySqlType would work just fine. /// </remarks> [Serializable] --- 5,23 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Binary"/> that is stored in ! /// a BLOB column with the information required to generate ! /// an <see cref="IDbDataParameter"/>. /// </summary> /// <remarks> + /// <p> + /// This can store the length of the binary data that the <see cref="IDbDataParameter"/> can hold. + /// If no value is provided for the length then the <c>Driver</c> is responsible for + /// setting the properties on the <see cref="IDbDataParameter"/> correctly. + /// </p> + /// <p> /// This is only needed by DataProviders (SqlClient) that need to specify a Size for the /// IDbDataParameter. Most DataProvider(Oralce) don't need to set the Size so a /// BinarySqlType would work just fine. + /// </p> /// </remarks> [Serializable] *************** *** 17,23 **** --- 25,39 ---- { + /// <summary> + /// Initializes a new instance of the <see cref="BinaryBlobSqlType"/> class. + /// </summary> public BinaryBlobSqlType() : base() { } + + /// <summary> + /// Initializes a new instance of the <see cref="BinaryBlobSqlType"/> class. + /// </summary> + /// <param name="length">The length of the binary data the <see cref="IDbDataParameter"/> should hold</param> public BinaryBlobSqlType(int length) : base(length) { Index: Int32SqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/Int32SqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Int32SqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- Int32SqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,13 **** { /// <summary> ! /// Summary description for Int32SqlType. /// </summary> [Serializable] public class Int32SqlType : SqlType { public Int32SqlType(): base(DbType.Int32) { --- 5,20 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Int32"/> with the ! /// extra information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Int32"/>. + /// </remarks> [Serializable] public class Int32SqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="Int32SqlType"/> class. + /// </summary> public Int32SqlType(): base(DbType.Int32) { Index: StringClobSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/StringClobSqlType.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StringClobSqlType.cs 25 Aug 2004 03:51:48 -0000 1.1 --- StringClobSqlType.cs 11 Dec 2004 16:28:28 -0000 1.2 *************** *** 5,15 **** { /// <summary> ! /// A SqlType that uses a <see cref="DbType.String "/> to generate a Parameter ! /// for the IDriver to write a CLOB value to the database. /// </summary> /// <remarks> /// This is only needed by DataProviders (SqlClient) that need to specify a Size for the /// IDbDataParameter. Most DataProvider(Oralce) don't need to set the Size so a /// StringSqlType would work just fine. /// </remarks> [Serializable] --- 5,23 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.String"/> that is stored in ! /// a CLOB column with the information required to generate ! /// an <see cref="IDbDataParameter"/>. /// </summary> /// <remarks> + /// <p> + /// This can store the length of the binary data that the <see cref="IDbDataParameter"/> can hold. + /// If no value is provided for the length then the <c>Driver</c> is responsible for + /// setting the properties on the <see cref="IDbDataParameter"/> correctly. + /// </p> + /// <p> /// This is only needed by DataProviders (SqlClient) that need to specify a Size for the /// IDbDataParameter. Most DataProvider(Oralce) don't need to set the Size so a /// StringSqlType would work just fine. + /// </p> /// </remarks> [Serializable] *************** *** 17,23 **** --- 25,39 ---- { + /// <summary> + /// Initializes a new instance of the <see cref="StringClobSqlType"/> class. + /// </summary> public StringClobSqlType() : base() { } + + /// <summary> + /// Initializes a new instance of the <see cref="StringClobSqlType"/> class. + /// </summary> + /// <param name="length">The length of the string the <see cref="IDbDataParameter"/> should hold.</param> public StringClobSqlType(int length) : base(length) { Index: DateTimeSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/DateTimeSqlType.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** DateTimeSqlType.cs 9 Aug 2004 03:33:54 -0000 1.4 --- DateTimeSqlType.cs 11 Dec 2004 16:28:28 -0000 1.5 *************** *** 5,13 **** { /// <summary> ! /// Summary description for DateTimeSqlType. /// </summary> [Serializable] public class DateTimeSqlType : SqlType { public DateTimeSqlType() : base(DbType.DateTime) { --- 5,20 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.DateTime"/> with the ! /// extra information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.DateTime"/>. + /// </remarks> [Serializable] public class DateTimeSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="DateTimeSqlType"/> class. + /// </summary> public DateTimeSqlType() : base(DbType.DateTime) { Index: BinarySqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/BinarySqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BinarySqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- BinarySqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,17 **** { /// <summary> ! /// Summary description for BinarySqlType. /// </summary> [Serializable] public class BinarySqlType : SqlType { public BinarySqlType() : base (DbType.Binary) { } public BinarySqlType(int length) : base (DbType.Binary, length) { --- 5,31 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Binary"/> with the ! /// information required to to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// This can store the binary data that the <see cref="IDbDataParameter"/> can hold. + /// If no value is provided for the length then the <c>Driver</c> is responsible for + /// setting the properties on the <see cref="IDbDataParameter"/> correctly. + /// </remarks> [Serializable] public class BinarySqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="BinarySqlType"/> class. + /// </summary> public BinarySqlType() : base (DbType.Binary) { } + + /// <summary> + /// Initializes a new instance of the <see cref="BinarySqlType"/> class. + /// </summary> + /// <param name="length">The length of the binary data the <see cref="IDbDataParameter"/> should hold</param> public BinarySqlType(int length) : base (DbType.Binary, length) { Index: SqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/SqlType.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SqlType.cs 21 Nov 2004 22:56:30 -0000 1.4 --- SqlType.cs 11 Dec 2004 16:28:28 -0000 1.5 *************** *** 5,15 **** { /// <summary> ! /// This is the base class that describes the DbType in further detail so we ! /// can prepare the IDbCommands. Certain SqlTypes have a default length or ! /// precision/scale that can get overriden in the hbm files. ! /// ! /// It is expected that each Dialect will be the one responsible for converting these ! /// objects to the sql string when using SchemaExport. /// </summary> [Serializable] public abstract class SqlType --- 5,22 ---- { /// <summary> ! /// This is the base class that adds information to the <see cref="DbType" /> ! /// for the <see cref="Driver.IDriver"/> and <see cref="Dialect.Dialect"/> ! /// to use. /// </summary> + /// <remarks> + /// <p> + /// The <see cref="Driver.IDriver"/> uses the SqlType to get enough + /// information to create an <see cref="IDbDataParameter"/>. + /// </p> + /// <p> + /// The <see cref="Dialect.Dialect"/> use the SqlType to convert the <see cref="DbType"/> + /// to the appropriate sql type for SchemaExport. + /// </p> + /// </remarks> [Serializable] public abstract class SqlType *************** *** 73,77 **** } ! #region overrides of Object methods public override int GetHashCode() --- 80,84 ---- } ! #region System.Object Members public override int GetHashCode() Index: DecimalSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/DecimalSqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DecimalSqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- DecimalSqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,18 **** { /// <summary> ! /// Summary description for DecimalSqlType. /// </summary> [Serializable] public class DecimalSqlType : SqlType { public DecimalSqlType() : base(DbType.Decimal) { } public DecimalSqlType(byte precision, byte scale) : base(DbType.Decimal, precision, scale) { --- 5,33 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Decimal"/> with the ! /// information required to to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// This can store the precision & scale of the decimal value that the + /// <see cref="IDbDataParameter"/> can hold. If no value is provided for the + /// precision & scale then the <c>Driver</c> is responsible for + /// setting the properties on the <see cref="IDbDataParameter"/> correctly. + /// </remarks> [Serializable] public class DecimalSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="DecimalSqlType"/> class. + /// </summary> public DecimalSqlType() : base(DbType.Decimal) { } + /// <summary> + /// Initializes a new instance of the <see cref="DecimalSqlType"/> class. + /// </summary> + /// <param name="precision">The precision of the Decimal the <see cref="IDbDataParameter"/> should hold.</param> + /// <param name="scale">The scale of the Decimal the <see cref="IDbDataParameter"/> should hold.</param> public DecimalSqlType(byte precision, byte scale) : base(DbType.Decimal, precision, scale) { Index: AnsiStringSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/AnsiStringSqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AnsiStringSqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- AnsiStringSqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 4,17 **** namespace NHibernate.SqlTypes { - /// <summary> ! /// Summary description for AnsiStringSqlType. /// </summary> [Serializable] public class AnsiStringSqlType : SqlType { public AnsiStringSqlType() : base(DbType.AnsiString) { } public AnsiStringSqlType(int length) : base(DbType.AnsiString, length) { --- 4,30 ---- namespace NHibernate.SqlTypes { /// <summary> ! /// Describes the details of a <see cref="DbType.AnsiString"/> with the ! /// information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// This can store the length of the string that the <see cref="IDbDataParameter"/> can hold. + /// If no value is provided for the length then the <c>Driver</c> is responsible for + /// setting the properties on the <see cref="IDbDataParameter"/> correctly. + /// </remarks> [Serializable] public class AnsiStringSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="AnsiStringSqlType"/> class. + /// </summary> public AnsiStringSqlType() : base(DbType.AnsiString) { } + + /// <summary> + /// Initializes a new instance of the <see cref="AnsiStringSqlType"/> class. + /// </summary> + /// <param name="length">The length of the string the <see cref="IDbDataParameter"/> should hold.</param> public AnsiStringSqlType(int length) : base(DbType.AnsiString, length) { Index: StringSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/StringSqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** StringSqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- StringSqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,16 **** { /// <summary> ! /// Summary description for StringSqlType. /// </summary> [Serializable] public class StringSqlType : SqlType { public StringSqlType() : base(DbType.String) { } public StringSqlType(int length) : base(DbType.String, length) { --- 5,30 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.String"/> with the ! /// information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// This can store the length of the string that the <see cref="IDbDataParameter"/> can hold. + /// If no value is provided for the length then the <c>Driver</c> is responsible for + /// setting the properties on the <see cref="IDbDataParameter"/> correctly. + /// </remarks> [Serializable] public class StringSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="StringSqlType"/> class. + /// </summary> public StringSqlType() : base(DbType.String) { } + + /// <summary> + /// Initializes a new instance of the <see cref="StringSqlType"/> class. + /// </summary> + /// <param name="length">The length of the string the <see cref="IDbDataParameter"/> should hold.</param> public StringSqlType(int length) : base(DbType.String, length) { Index: TimeSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/TimeSqlType.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TimeSqlType.cs 9 Aug 2004 03:33:54 -0000 1.2 --- TimeSqlType.cs 11 Dec 2004 16:28:28 -0000 1.3 *************** *** 5,13 **** { /// <summary> ! /// Summary description for TimeSqlType. /// </summary> [Serializable] public class TimeSqlType : SqlType { public TimeSqlType() : base(DbType.Time) { --- 5,20 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Time"/> with the ! /// extra information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Time"/>. + /// </remarks> [Serializable] public class TimeSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="TimeSqlType"/> class. + /// </summary> public TimeSqlType() : base(DbType.Time) { Index: Int64SqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/Int64SqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Int64SqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- Int64SqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,13 **** { /// <summary> ! /// Summary description for Int64SqlType. /// </summary> [Serializable] public class Int64SqlType : SqlType { public Int64SqlType(): base(DbType.Int64) { --- 5,20 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Int64"/> with the ! /// extra information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Int64"/>. + /// </remarks> [Serializable] public class Int64SqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="Int64SqlType"/> class. + /// </summary> public Int64SqlType(): base(DbType.Int64) { Index: ByteSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/ByteSqlType.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ByteSqlType.cs 9 Aug 2004 03:33:54 -0000 1.2 --- ByteSqlType.cs 11 Dec 2004 16:28:28 -0000 1.3 *************** *** 2,14 **** using System.Data; ! namespace NHibernate.SqlTypes { ! /// <summary> ! /// Summary description for ByteSqlType. /// </summary> [Serializable] public class ByteSqlType : SqlType { ! public ByteSqlType() : base(DbType.Byte){ } } --- 2,22 ---- using System.Data; ! namespace NHibernate.SqlTypes ! { /// <summary> ! /// Describes the details of a <see cref="DbType.Byte"/> with the ! /// information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Byte"/>. + /// </remarks> [Serializable] public class ByteSqlType : SqlType { ! /// <summary> ! /// Initializes a new instance of the <see cref="ByteSqlType"/> class. ! /// </summary> ! public ByteSqlType() : base(DbType.Byte) ! { } } Index: DateSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/DateSqlType.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DateSqlType.cs 9 Aug 2004 03:33:54 -0000 1.2 --- DateSqlType.cs 11 Dec 2004 16:28:28 -0000 1.3 *************** *** 5,13 **** { /// <summary> ! /// Summary description for DateSqlType. /// </summary> [Serializable] public class DateSqlType : SqlType { public DateSqlType() : base(DbType.Date) { --- 5,20 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Date"/> with the ! /// extra information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Date"/>. + /// </remarks> [Serializable] public class DateSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="DateSqlType"/> class. + /// </summary> public DateSqlType() : base(DbType.Date) { Index: Int16SqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/Int16SqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Int16SqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- Int16SqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,13 **** { /// <summary> ! /// Summary description for Int16SqlType. /// </summary> [Serializable] public class Int16SqlType : SqlType { public Int16SqlType(): base(DbType.Int16) { --- 5,20 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Int16"/> with the ! /// extra information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Int16"/>. + /// </remarks> [Serializable] public class Int16SqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="Int16SqlType"/> class. + /// </summary> public Int16SqlType(): base(DbType.Int16) { Index: StringFixedLengthSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/StringFixedLengthSqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** StringFixedLengthSqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- StringFixedLengthSqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,17 **** { /// <summary> ! /// Summary description for StringFixedLengthSqlType. /// </summary> [Serializable] public class StringFixedLengthSqlType : SqlType { public StringFixedLengthSqlType() : base(DbType.StringFixedLength) { } public StringFixedLengthSqlType(int length) : base(DbType.StringFixedLength, length) { --- 5,30 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.StringFixedLength"/> with the ! /// information required to to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// This can store the length of the string that the <see cref="IDbDataParameter"/> can hold. + /// If no value is provided for the length then the <c>Driver</c> is responsible for + /// setting the properties on the <see cref="IDbDataParameter"/> correctly. + /// </remarks> [Serializable] public class StringFixedLengthSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="StringFixedLengthSqlType"/> class. + /// </summary> public StringFixedLengthSqlType() : base(DbType.StringFixedLength) { } + /// <summary> + /// Initializes a new instance of the <see cref="StringFixedLengthSqlType"/> class. + /// </summary> + /// <param name="length">The length of the string the <see cref="IDbDataParameter"/> should hold.</param> public StringFixedLengthSqlType(int length) : base(DbType.StringFixedLength, length) { Index: BooleanSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/BooleanSqlType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BooleanSqlType.cs 9 Aug 2004 03:33:54 -0000 1.3 --- BooleanSqlType.cs 11 Dec 2004 16:28:28 -0000 1.4 *************** *** 5,13 **** { /// <summary> ! /// Summary description for BooleanSqlType. /// </summary> [Serializable] public class BooleanSqlType : SqlType { public BooleanSqlType() : base(DbType.Boolean) { --- 5,20 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Boolean"/> with the ! /// information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Boolean"/>. + /// </remarks> [Serializable] public class BooleanSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="BooleanSqlType"/> class. + /// </summary> public BooleanSqlType() : base(DbType.Boolean) { --- NEW FILE: SByteSqlType.cs --- using System; using System.Data; namespace NHibernate.SqlTypes { /// <summary> /// Describes the details of a <see cref="DbType.SByte"/> with the /// extra information required to generate an <see cref="IDbDataParameter"/>. /// </summary> /// <remarks> /// There is not any extra information needed for a <see cref="DbType.SByte"/>. /// </remarks> [Serializable] public class SByteSqlType : SqlType { /// <summary> /// Initializes a new instance of the <see cref="SByteSqlType"/> class. /// </summary> public SByteSqlType() : base(DbType.SByte) { } } } Index: GuidSqlType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes/GuidSqlType.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GuidSqlType.cs 9 Aug 2004 03:33:54 -0000 1.2 --- GuidSqlType.cs 11 Dec 2004 16:28:28 -0000 1.3 *************** *** 1,3 **** - using System; using System.Data; --- 1,2 ---- *************** *** 6,14 **** { /// <summary> ! /// Summary description for GuidSqlType. /// </summary> [Serializable] public class GuidSqlType : SqlType { public GuidSqlType() : base(DbType.Guid) { --- 5,20 ---- { /// <summary> ! /// Describes the details of a <see cref="DbType.Guid"/> with the ! /// extra information required to generate an <see cref="IDbDataParameter"/>. /// </summary> + /// <remarks> + /// There is not any extra information needed for a <see cref="DbType.Guid"/>. + /// </remarks> [Serializable] public class GuidSqlType : SqlType { + /// <summary> + /// Initializes a new instance of the <see cref="GuidSqlType"/> class. + /// </summary> public GuidSqlType() : base(DbType.Guid) { |