Skip to content

Commit b7a8f38

Browse files
author
Kevin Williams
committed
fix xml documentation and allow ReSharper to reformat
SVN: trunk@1187
1 parent e40d8d4 commit b7a8f38

36 files changed

+772
-420
lines changed

src/NHibernate/ADOException.cs

+38-13
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,55 @@
11
using System;
22
using System.Data;
33
using System.Runtime.Serialization;
4+
using log4net;
45

5-
namespace NHibernate
6+
namespace NHibernate
67
{
78
/// <summary>
89
/// Wraps an <c>DataException</c>. Indicates that an exception occurred during an ADO.NET call.
910
/// </summary>
10-
[Serializable]
11-
public class ADOException : HibernateException
11+
[ Serializable ]
12+
public class ADOException : HibernateException
1213
{
13-
private Exception sqle;
14-
15-
public ADOException() : this("DataException occured", new InvalidOperationException("Invalid Operation")) { }
14+
/// <summary></summary>
15+
public ADOException() : this( "DataException occured", new InvalidOperationException( "Invalid Operation" ) )
16+
{
17+
}
1618

17-
public ADOException(string message) : this(message, new InvalidOperationException("Invalid Operation")) { }
19+
/// <summary>
20+
///
21+
/// </summary>
22+
/// <param name="message"></param>
23+
public ADOException( string message ) : this( message, new InvalidOperationException( "Invalid Operation" ) )
24+
{
25+
}
1826

19-
public ADOException(DataException root) : this("DataException occurred", root) { }
27+
/// <summary>
28+
///
29+
/// </summary>
30+
/// <param name="root"></param>
31+
public ADOException( DataException root ) : this( "DataException occurred", root )
32+
{
33+
}
2034

21-
public ADOException(string message, Exception root) : base(message, root)
35+
/// <summary>
36+
///
37+
/// </summary>
38+
/// <param name="message"></param>
39+
/// <param name="root"></param>
40+
public ADOException( string message, Exception root ) : base( message, root )
2241
{
23-
sqle = root;
24-
log4net.LogManager.GetLogger( typeof(ADOException) ).Error(message, root);
42+
LogManager.GetLogger( typeof( ADOException ) ).Error( message, root );
2543
}
2644

27-
protected ADOException(SerializationInfo info, StreamingContext context) : base(info, context) { }
45+
/// <summary>
46+
///
47+
/// </summary>
48+
/// <param name="info"></param>
49+
/// <param name="context"></param>
50+
protected ADOException( SerializationInfo info, StreamingContext context ) : base( info, context )
51+
{
52+
}
2853

2954
}
30-
}
55+
}

src/NHibernate/AssemblyInfo.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//------------------------------------------------------------------------------
66
// <autogenerated>
77
// This code was generated by a tool.
8-
// Runtime Version: 1.1.4322.573
8+
// Runtime Version: 1.1.4322.2032
99
//
1010
// Changes to this file may cause incorrect behavior and will be lost if
1111
// the code is regenerated.
@@ -21,5 +21,4 @@
2121
[assembly: AssemblyVersionAttribute("0.5.0.0")]
2222
[assembly: AssemblyInformationalVersionAttribute("0.5")]
2323
[assembly: AssemblyFileVersionAttribute("0.5.0.0")]
24-
//[assembly: AssemblyKeyFileAttribute("..\\NHibernate.snk")]
2524

src/NHibernate/AssertionFailure.cs

+29-11
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,47 @@
11
using System;
22
using System.Runtime.Serialization;
3+
using log4net;
34

4-
namespace NHibernate
5+
namespace NHibernate
56
{
67
/// <summary>
78
/// Indicates failure of an assertion: a possible bug in NHibernate
89
/// </summary>
9-
[Serializable]
10-
public class AssertionFailure : ApplicationException
10+
[ Serializable ]
11+
public class AssertionFailure : ApplicationException
1112
{
12-
public AssertionFailure() : base(String.Empty)
13+
/// <summary></summary>
14+
public AssertionFailure() : base( String.Empty )
1315
{
14-
log4net.LogManager.GetLogger( typeof(AssertionFailure) ).Error("An AssertionFailure occured - this may indicate a bug in NHibernate");
16+
LogManager.GetLogger( typeof( AssertionFailure ) ).Error( "An AssertionFailure occured - this may indicate a bug in NHibernate" );
1517
}
1618

17-
public AssertionFailure(string message) : base(message)
19+
/// <summary>
20+
///
21+
/// </summary>
22+
/// <param name="message"></param>
23+
public AssertionFailure( string message ) : base( message )
1824
{
19-
log4net.LogManager.GetLogger( typeof(AssertionFailure) ).Error("An AssertionFailure occured - this may indicate a bug in NHibernate", this);
25+
LogManager.GetLogger( typeof( AssertionFailure ) ).Error( "An AssertionFailure occured - this may indicate a bug in NHibernate", this );
2026
}
2127

22-
public AssertionFailure(string message, Exception e) : base(message, e)
28+
/// <summary>
29+
///
30+
/// </summary>
31+
/// <param name="message"></param>
32+
/// <param name="e"></param>
33+
public AssertionFailure( string message, Exception e ) : base( message, e )
2334
{
24-
log4net.LogManager.GetLogger( typeof(AssertionFailure) ).Error("An AssertionFailure occured - this may indicate a bug in NHibernate", e);
35+
LogManager.GetLogger( typeof( AssertionFailure ) ).Error( "An AssertionFailure occured - this may indicate a bug in NHibernate", e );
2536
}
2637

27-
protected AssertionFailure(SerializationInfo info, StreamingContext context) : base(info, context) { }
38+
/// <summary>
39+
///
40+
/// </summary>
41+
/// <param name="info"></param>
42+
/// <param name="context"></param>
43+
protected AssertionFailure( SerializationInfo info, StreamingContext context ) : base( info, context )
44+
{
45+
}
2846
}
29-
}
47+
}

src/NHibernate/CallbackException.cs

+39-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,49 @@
11
using System;
22
using System.Runtime.Serialization;
33

4-
namespace NHibernate
4+
namespace NHibernate
55
{
6-
[Serializable]
7-
public class CallbackException : HibernateException
6+
/// <summary></summary>
7+
[ Serializable ]
8+
public class CallbackException : HibernateException
89
{
9-
public CallbackException() : base("An exception occured in a callback") {}
10+
/// <summary></summary>
11+
public CallbackException() : this( "An exception occured in a callback" )
12+
{
13+
}
1014

11-
public CallbackException(Exception root) : base("An exception occured in a callback", root) {}
15+
/// <summary>
16+
///
17+
/// </summary>
18+
/// <param name="root"></param>
19+
public CallbackException( Exception root ) : this( "An exception occured in a callback", root )
20+
{
21+
}
1222

13-
public CallbackException(string message) : base(message) {}
23+
/// <summary>
24+
///
25+
/// </summary>
26+
/// <param name="message"></param>
27+
public CallbackException( string message ) : base( message )
28+
{
29+
}
1430

15-
public CallbackException(string message, Exception e) : base(message, e) {}
31+
/// <summary>
32+
///
33+
/// </summary>
34+
/// <param name="message"></param>
35+
/// <param name="e"></param>
36+
public CallbackException( string message, Exception e ) : base( message, e )
37+
{
38+
}
1639

17-
protected CallbackException(SerializationInfo info, StreamingContext context) : base(info, context) { }
40+
/// <summary>
41+
///
42+
/// </summary>
43+
/// <param name="info"></param>
44+
/// <param name="context"></param>
45+
protected CallbackException( SerializationInfo info, StreamingContext context ) : base( info, context )
46+
{
47+
}
1848
}
19-
}
49+
}

src/NHibernate/FetchMode.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace NHibernate
3+
namespace NHibernate
44
{
55
/// <summary>
66
/// Represents a fetching strategy.
@@ -12,8 +12,8 @@ namespace NHibernate
1212
/// For Hql queries, use the <c>FETCH</c> keyword instead.
1313
/// </para>
1414
/// </remarks>
15-
[Serializable]
16-
public enum FetchMode
15+
[ Serializable ]
16+
public enum FetchMode
1717
{
1818
/// <summary>
1919
/// Default to the setting configured in the mapping file.

src/NHibernate/FlushMode.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace NHibernate
3+
namespace NHibernate
44
{
55
/// <summary>
66
/// Represents a flushing strategy.
@@ -10,7 +10,7 @@ namespace NHibernate
1010
/// changes and executing SQL statements
1111
/// </remarks>
1212
[Serializable]
13-
public enum FlushMode
13+
public enum FlushMode
1414
{
1515
/// <summary>
1616
/// The <c>ISession</c> is never flushed unless <c>Flush()</c> is explicitly
@@ -28,4 +28,4 @@ public enum FlushMode
2828
/// </summary>
2929
Auto = 10
3030
}
31-
}
31+
}

src/NHibernate/ICompositeUserType.cs

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Data;
3-
43
using NHibernate.Engine;
54
using NHibernate.Type;
65

@@ -41,19 +40,19 @@ public interface ICompositeUserType
4140
/// <param name="component">an instance of class mapped by this "type"</param>
4241
/// <param name="property"></param>
4342
/// <returns>the property value</returns>
44-
object GetPropertyValue(object component, int property);
43+
object GetPropertyValue( object component, int property );
4544

4645
/// <summary>
4746
/// Set the value of a property
4847
/// </summary>
4948
/// <param name="component">an instance of class mapped by this "type"</param>
5049
/// <param name="property"></param>
5150
/// <param name="value">the value to set</param>
52-
void SetPropertyValue(object component, int property, object value);
51+
void SetPropertyValue( object component, int property, object value );
5352

5453
/// <summary>
55-
/// The class returned by NullSafeGet().
56-
/// </summary>
54+
/// The class returned by NullSafeGet().
55+
/// </summary>
5756
System.Type ReturnedClass { get; }
5857

5958
/// <summary>
@@ -63,7 +62,7 @@ public interface ICompositeUserType
6362
/// <param name="x"></param>
6463
/// <param name="y"></param>
6564
/// <returns></returns>
66-
bool Equals(Object x, Object y);
65+
bool Equals( Object x, Object y );
6766

6867
/// <summary>
6968
/// Retrieve an instance of the mapped class from a IDataReader. Implementors
@@ -74,7 +73,7 @@ public interface ICompositeUserType
7473
/// <param name="session"></param>
7574
/// <param name="owner">the containing entity</param>
7675
/// <returns></returns>
77-
object NullSafeGet(IDataReader dr, string[] names, ISessionImplementor session, object owner);
76+
object NullSafeGet( IDataReader dr, string[] names, ISessionImplementor session, object owner );
7877

7978
/// <summary>
8079
/// Write an instance of the mapped class to a prepared statement.
@@ -85,14 +84,14 @@ public interface ICompositeUserType
8584
/// <param name="value"></param>
8685
/// <param name="index"></param>
8786
/// <param name="session"></param>
88-
void NullSafeSet(IDbCommand cmd, object value, int index, ISessionImplementor session);
87+
void NullSafeSet( IDbCommand cmd, object value, int index, ISessionImplementor session );
8988

9089
/// <summary>
9190
/// Return a deep copy of the persistent state, stopping at entities and at collections.
9291
/// </summary>
9392
/// <param name="value">generally a collection element or entity field</param>
9493
/// <returns></returns>
95-
object DeepCopy(object value);
94+
object DeepCopy( object value );
9695

9796
/// <summary>
9897
/// Are objects of this type mutable?
@@ -107,7 +106,7 @@ public interface ICompositeUserType
107106
/// <param name="value">the object to be cached</param>
108107
/// <param name="session"></param>
109108
/// <returns></returns>
110-
object Disassemble(object value, ISessionImplementor session);
109+
object Disassemble( object value, ISessionImplementor session );
111110

112111
/// <summary>
113112
/// Reconstruct an object from the cacheable representation.
@@ -117,6 +116,6 @@ public interface ICompositeUserType
117116
/// <param name="session"></param>
118117
/// <param name="owner"></param>
119118
/// <returns></returns>
120-
object Assemble(object cached, ISessionImplementor session, object owner);
119+
object Assemble( object cached, ISessionImplementor session, object owner );
121120
}
122121
}

0 commit comments

Comments
 (0)