diff --git a/Dapper.EntityFramework/DbGeographyHandler.cs b/Dapper.EntityFramework/DbGeographyHandler.cs index e3191847c355c0e65fdaddfca30a85e5e2f99e16..c0355dc9143bfcc59648ca5ca64c1c767f73dbd4 100644 --- a/Dapper.EntityFramework/DbGeographyHandler.cs +++ b/Dapper.EntityFramework/DbGeographyHandler.cs @@ -8,23 +8,25 @@ namespace Dapper.EntityFramework { /// - /// Type-handler for the DbGeography spatial type + /// Type-handler for the DbGeography spatial type. /// public class DbGeographyHandler : SqlMapper.TypeHandler { /// - /// Create a new handler instance + /// Create a new handler instance. /// - protected DbGeographyHandler() { } + protected DbGeographyHandler() { /* create new */ } + /// /// Default handler instance /// public static readonly DbGeographyHandler Default = new DbGeographyHandler(); + /// - /// Assign the value of a parameter before a command executes + /// Assign the value of a parameter before a command executes. /// - /// The parameter to configure - /// Parameter value + /// The parameter to configure. + /// Parameter value. public override void SetValue(IDbDataParameter parameter, DbGeography value) { object parsed = null; @@ -38,11 +40,12 @@ public override void SetValue(IDbDataParameter parameter, DbGeography value) sqlParameter.UdtTypeName = "geography"; } } + /// - /// Parse a database value back to a typed value + /// Parse a database value back to a typed value. /// - /// The value from the database - /// The typed value + /// The value from the database. + /// The typed value. public override DbGeography Parse(object value) { if (value == null || value is DBNull) return null; diff --git a/Dapper.EntityFramework/DbGeometryHandler.cs b/Dapper.EntityFramework/DbGeometryHandler.cs index 5525366f2529ca5e244afde2fca8255d395d19ed..bd8582529f3dc11ff3fde3359474aa6edc33a0a8 100644 --- a/Dapper.EntityFramework/DbGeometryHandler.cs +++ b/Dapper.EntityFramework/DbGeometryHandler.cs @@ -8,23 +8,25 @@ namespace Dapper.EntityFramework { /// - /// Type-handler for the DbGeometry spatial type + /// Type-handler for the DbGeometry spatial type. /// public class DbGeometryHandler : SqlMapper.TypeHandler { /// - /// Create a new handler instance + /// Create a new handler instance. /// - protected DbGeometryHandler() { } + protected DbGeometryHandler() { /* create new */ } + /// - /// Default handler instance + /// Default handler instance. /// public static readonly DbGeometryHandler Default = new DbGeometryHandler(); + /// - /// Assign the value of a parameter before a command executes + /// Assign the value of a parameter before a command executes. /// - /// The parameter to configure - /// Parameter value + /// The parameter to configure. + /// Parameter value. public override void SetValue(IDbDataParameter parameter, DbGeometry value) { object parsed = null; @@ -38,11 +40,12 @@ public override void SetValue(IDbDataParameter parameter, DbGeometry value) ((SqlParameter)parameter).UdtTypeName = "geometry"; } } + /// - /// Parse a database value back to a typed value + /// Parse a database value back to a typed value. /// - /// The value from the database - /// The typed value + /// The value from the database. + /// The typed value. public override DbGeometry Parse(object value) { if (value == null || value is DBNull) return null;