Commit 6465a2a5 authored by simon.cropp's avatar simon.cropp

remove some unused properties

parent 45f8762a
...@@ -86,17 +86,12 @@ private static DbType LookupDbType(Type type) ...@@ -86,17 +86,12 @@ private static DbType LookupDbType(Type type)
private class Identity : IEquatable<Identity> private class Identity : IEquatable<Identity>
{ {
public String ConnectionString { get { return connectionString; } }
public Type Type { get { return type; } }
public string Sql { get { return sql; } }
public Type ParametersType { get { return ParametersType; } }
internal Identity(string sql, IDbConnection cnn, Type type, Type parametersType, Type[] otherTypes = null) internal Identity(string sql, IDbConnection cnn, Type type, Type parametersType, Type[] otherTypes = null)
{ {
this.sql = sql; this.sql = sql;
this.connectionString = cnn.ConnectionString; this.connectionString = cnn.ConnectionString;
this.type = type; this.type = type;
this.parametersType = parametersType; this.parametersType = parametersType;
this.otherTypes = otherTypes;
unchecked unchecked
{ {
hashCode = 17; // we *know* we are using this in a dictionary, so pre-compute this hashCode = 17; // we *know* we are using this in a dictionary, so pre-compute this
...@@ -120,7 +115,6 @@ public override bool Equals(object obj) ...@@ -120,7 +115,6 @@ public override bool Equals(object obj)
private readonly string sql; private readonly string sql;
private readonly int hashCode; private readonly int hashCode;
private readonly Type type; private readonly Type type;
private readonly Type[] otherTypes;
private readonly string connectionString; private readonly string connectionString;
private readonly Type parametersType; private readonly Type parametersType;
public override int GetHashCode() public override int GetHashCode()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment