Format better
This commit is contained in:
parent
d3fadaf264
commit
83f02e49aa
1 changed files with 81 additions and 81 deletions
|
|
@ -106,7 +106,7 @@ namespace TShockAPI.DB
|
|||
|
||||
public static IDbConnection CloneEx(this IDbConnection conn)
|
||||
{
|
||||
var clone = (IDbConnection) Activator.CreateInstance(conn.GetType());
|
||||
var clone = (IDbConnection)Activator.CreateInstance(conn.GetType());
|
||||
clone.ConnectionString = conn.ConnectionString;
|
||||
return clone;
|
||||
}
|
||||
|
|
@ -212,8 +212,8 @@ namespace TShockAPI.DB
|
|||
if (reader.IsDBNull(column))
|
||||
return default(T);
|
||||
|
||||
if (ReadFuncs.ContainsKey(typeof (T)))
|
||||
return (T) ReadFuncs[typeof (T)](reader, column);
|
||||
if (ReadFuncs.ContainsKey(typeof(T)))
|
||||
return (T)ReadFuncs[typeof(T)](reader, column);
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue