sure... i am a bit leary of leaving a patch as i have other modifications to this file not related to this change.
the file is Source/DataAccessLayer.SqlClient/SqlEntityProviderBase.generated.cst
my line numbers will be off due to the other changes i have but at the end of the file is a Custom Methods region. this is where the change is (starts around line 1271 in the original file) This color is the event already there. This color is the event calls I added. Hope this helps.
<% if (returnType == "DataSet") { %>
DataSet ds = null;
//Provider Data Requesting Command Event
OnDataRequesting(new CommandEventArgs(commandWrapper, "<%= methodName %>", (IEntity)null));
if (transactionManager != null)
{
ds = database.ExecuteDataSet(commandWrapper, transactionManager.TransactionObject);
}
else
{
ds = database.ExecuteDataSet(commandWrapper);
}
//Provider Data Requested Command Event
OnDataRequested(new CommandEventArgs(commandWrapper, "<%= methodName %>", (IEntity)null));
<%=outputValues.ToString()%>
return ds;
<% } else if (returnType == "IDataReader") { %>
IDataReader dr = null;
//Provider Data Requesting Command Event
OnDataRequesting(new CommandEventArgs(commandWrapper, "<%= methodName %>", (IEntity)null));
if (transactionManager != null)
{
dr = Utility.ExecuteReader(transactionManager,commandWrapper);
}
else
{
dr = Utility.ExecuteReader(database, commandWrapper);
}
//Provider Data Requested Command Event
OnDataRequested(new CommandEventArgs(commandWrapper, "<%= methodName %>", (IEntity)null));
<%=outputValues.ToString()%>
return dr;
<% } else if (returnType == "void") { %>
//Provider Data Requesting Command Event
OnDataRequesting(new CommandEventArgs(commandWrapper, "<%= methodName %>", (IEntity)null));
if (transactionManager != null)
{
Utility.ExecuteNonQuery(transactionManager, commandWrapper );
}
else
{
Utility.ExecuteNonQuery(database, commandWrapper);
}
//Provider Data Requested Command Event
OnDataRequested(new CommandEventArgs(commandWrapper, "<%= methodName %>", (IEntity)null));
<%=outputValues.ToString()%>
return;
<% } else if (collectionClassName.Contains(returnType)) { %>
//Provider Data Requesting Command Event
OnDataRequesting(new CommandEventArgs(commandWrapper, "<%= methodName %>", (IEntity)null));
IDataReader reader = null;