Permalink
Browse files

Fix some compiler warnings.

  • Loading branch information...
lanwin committed Jun 20, 2010
1 parent ab343f8 commit cd7f62210b4b29525f9e077fbda49035141a7346
@@ -23,17 +23,32 @@ internal IdOverridesBuilder(IdOverrides overrides)
_overrides = overrides;
}
+ /// <summary>
+ /// Generateds the by.
+ /// </summary>
+ /// <typeparam name="T"></typeparam>
+ /// <returns></returns>
public IdOverridesBuilder GeneratedBy<T>() where T : IIdGenerator, new()
{
return GeneratedBy(new T());
}
+ /// <summary>
+ /// Generateds the by.
+ /// </summary>
+ /// <param name="generator">The generator.</param>
+ /// <returns></returns>
public IdOverridesBuilder GeneratedBy(IIdGenerator generator)
{
_overrides.Generator = generator;
return this;
}
+ /// <summary>
+ /// Unsaveds the value.
+ /// </summary>
+ /// <param name="unsavedValue">The unsaved value.</param>
+ /// <returns></returns>
public IdOverridesBuilder UnsavedValue(object unsavedValue)
{
_overrides.UnsavedValue = unsavedValue;
@@ -8,7 +8,7 @@ namespace MongoDB.Configuration.Mapping.Auto
/// </summary>
public class ClassOverrides
{
- private IdOverrides _idOverrides;
+ private readonly IdOverrides _idOverrides;
private readonly Dictionary<MemberInfo, MemberOverrides> _memberOverrides;
/// <summary>
@@ -22,6 +22,7 @@ public class ClassOverrides
/// </summary>
public ClassOverrides()
{
+ _idOverrides = null;
_memberOverrides = new Dictionary<MemberInfo, MemberOverrides>();
}
@@ -1,12 +1,11 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Reflection;
+using System.Reflection;
using MongoDB.Configuration.IdGenerators;
namespace MongoDB.Configuration.Mapping.Auto
{
+ /// <summary>
+ ///
+ /// </summary>
public class IdOverrides
{
/// <summary>

0 comments on commit cd7f622

Please sign in to comment.