From: Kevin W. <kev...@us...> - 2004-12-31 23:56:36
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Type In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24948 Modified Files: ValueTypeType.cs YesNoType.cs Log Message: fixing xml comments and letting ReSharper do reformatting Index: ValueTypeType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/ValueTypeType.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ValueTypeType.cs 20 Sep 2004 03:00:29 -0000 1.1 --- ValueTypeType.cs 31 Dec 2004 23:56:25 -0000 1.2 *************** *** 1,15 **** using System; - using NHibernate.SqlTypes; using NHibernate.Util; ! namespace NHibernate.Type { /// <summary> /// Superclass of <see cref="ValueType"/> types. /// </summary> ! public abstract class ValueTypeType : ImmutableType, ILiteralType { - /// <summary> /// Initialize a new instance of the ValueTypeType class using a --- 1,13 ---- using System; using NHibernate.SqlTypes; using NHibernate.Util; ! namespace NHibernate.Type { /// <summary> /// Superclass of <see cref="ValueType"/> types. /// </summary> ! public abstract class ValueTypeType : ImmutableType, ILiteralType { /// <summary> /// Initialize a new instance of the ValueTypeType class using a *************** *** 17,24 **** /// </summary> /// <param name="sqlType">The underlying <see cref="SqlType"/>.</param> ! protected ValueTypeType(SqlType sqlType) : base(sqlType) { } ! /// <summary> /// Compare two instances of the class mapped by this --- 15,22 ---- /// </summary> /// <param name="sqlType">The underlying <see cref="SqlType"/>.</param> ! protected ValueTypeType( SqlType sqlType ) : base( sqlType ) { } ! /// <summary> /// Compare two instances of the class mapped by this *************** *** 28,36 **** /// <param name="y">The right hand side object.</param> /// <returns>True if the two objects contain the same values.</returns> ! public override bool Equals(object x, object y) { ! return ObjectUtils.Equals(x, y); } ! /// <summary> /// A representation of the value to be embedded in an XML element --- 26,36 ---- /// <param name="y">The right hand side object.</param> /// <returns>True if the two objects contain the same values.</returns> ! public override bool Equals( object x, object y ) { ! return ObjectUtils.Equals( x, y ); } ! ! // <see cref="PrimitiveType"/> ! /// <summary> /// A representation of the value to be embedded in an XML element *************** *** 41,45 **** /// <remarks> /// This just calls <see cref="Object.ToString"/> so if there is ! /// a possibility of this <see cref="PrimitiveType"/> having any characters /// that need to be encoded then this method should be overridden. /// --- 41,45 ---- /// <remarks> /// This just calls <see cref="Object.ToString"/> so if there is ! /// a possibility of this PrimitiveType having any characters /// that need to be encoded then this method should be overridden. /// *************** *** 47,51 **** /// done automattically. /// </remarks> ! public override string ToXML(object val) { return val.ToString(); --- 47,51 ---- /// done automattically. /// </remarks> ! public override string ToXML( object val ) { return val.ToString(); *************** *** 58,62 **** /// <param name="val">The object to convert to a string for the SQL statement.</param> /// <returns>A string that containts a well formed SQL Statement.</returns> ! public abstract string ObjectToSQLString(object val); } } \ No newline at end of file --- 58,62 ---- /// <param name="val">The object to convert to a string for the SQL statement.</param> /// <returns>A string that containts a well formed SQL Statement.</returns> ! public abstract string ObjectToSQLString( object val ); } } \ No newline at end of file Index: YesNoType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/YesNoType.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** YesNoType.cs 25 Oct 2004 05:37:56 -0000 1.6 --- YesNoType.cs 31 Dec 2004 23:56:25 -0000 1.7 *************** *** 1,4 **** - using System; - using NHibernate.SqlTypes; --- 1,2 ---- *************** *** 6,10 **** { /// <summary> ! /// Maps a <see cref="System.Boolean" /> to a 1 char <see cref="DbType.AnsiStringFixedLength" /> column /// that stores a <code>'Y'/'N'</code> to indicate <code>true/false</code>. /// </summary> --- 4,8 ---- { /// <summary> ! /// Maps a <see cref="System.Boolean" /> to a 1 char <see cref="System.Data.DbType.AnsiStringFixedLength" /> column /// that stores a <code>'Y'/'N'</code> to indicate <code>true/false</code>. /// </summary> *************** *** 17,38 **** /// export to create a char(1) column. /// </remarks> ! public class YesNoType : CharBooleanType { ! ! internal YesNoType() : base( new AnsiStringFixedLengthSqlType(1) ) { } ! protected override sealed string TrueString { get { return "Y"; } } ! protected override sealed string FalseString { get { return "N"; } } ! public override string Name { get { return "YesNo"; } --- 15,39 ---- /// export to create a char(1) column. /// </remarks> ! public class YesNoType : CharBooleanType { ! /// <summary></summary> ! internal YesNoType() : base( new AnsiStringFixedLengthSqlType( 1 ) ) { } ! /// <summary></summary> ! protected override sealed string TrueString { get { return "Y"; } } ! /// <summary></summary> ! protected override sealed string FalseString { get { return "N"; } } ! /// <summary></summary> ! public override string Name { get { return "YesNo"; } |