Fixes VS14 build. SqlCEHelper.cs - the compiler in Vs14 doesn't like that we're callng public IRecordsReader ExecuteReader(string commandText, params IParameter[] parameters) like this: ExecuteNonQuery("alter table [" + table + "] drop constraint [" + constraint + "]");
Added two internal method overloads that just send an empty parameter array instead.
This commit is contained in:
@@ -25,3 +25,5 @@ using System.Runtime.InteropServices;
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("6210756f-436d-4536-bad3-d7b000e1694f")]
|
||||
|
||||
[assembly: InternalsVisibleTo("SqlCE4Umbraco")]
|
||||
@@ -235,6 +235,11 @@ namespace umbraco.DataLayer
|
||||
}
|
||||
}
|
||||
|
||||
internal int ExecuteNonQuery(string commandText)
|
||||
{
|
||||
return ExecuteNonQuery(commandText, new P[0]);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes a command and returns a records reader containing the results.
|
||||
/// </summary>
|
||||
@@ -259,6 +264,11 @@ namespace umbraco.DataLayer
|
||||
}
|
||||
}
|
||||
|
||||
internal IRecordsReader ExecuteReader(string commandText)
|
||||
{
|
||||
return ExecuteReader(commandText, new P[0]);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes a command that returns an XML value.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user