I'm trying to add another method to my DataProvider class in a custom 4.5.1 module like this:
DataProvider.vb
Public MustOverride Function UpdateFeederLatest(ByVal ItemID As Integer, ByVal ItemTitle As String, ByVal ItemDate As String) As Integer
I also add this it SqlDataProvider:
Public Overrides Function UpdateFeederLatest(ByVal ItemID As Integer, ByVal ItemTitle As Integer, ByVal ItemDate As String)
Return Convert.ToInt32(SqlHelper.ExecuteScalar(ConnectionString, GetFullyQualifiedName("UpdateFeederLatest"), ItemID, ItemTitle, ItemDate))
End Function
However, it won't allow me to build.
I always get this error message:
"function "UpdateFeederLatest" cannot be declared 'Overrides' because it does not override a function in a base class"
This is very odd, because I've added it to the DataProvider along with the other abstract methods.
Can anyone help me out with this? I have no idea what's causing it.