Click here to Skip to main content
15,898,222 members

Comments by Mahfoud Bouabdallah 2022 (Top 4 by date)

Mahfoud Bouabdallah 2022 15-Jul-23 11:15am View    
I remove the if statement so the code will be like this
var sqlDependency = new SqlDependency(sqlCommand);
sqlDependency.OnChange += onChangeEventHandler;

Still nothing happened and no queues have been registered in the database.
Mahfoud Bouabdallah 2022 15-Jul-23 11:14am View    
Deleted
I remove the if statement so the code will be like this
var sqlDependency = new SqlDependency(sqlCommand);
sqlDependency.OnChange += onChangeEventHandler;

Still nothing happened and no queues have been registered in the database.
Mahfoud Bouabdallah 2022 14-Jul-23 6:05am View    
Hello Graeme Grant,
In the first load of the form or in click of button BtnRefresh it is hit the
if (onChangeEventHandler != null)
{
var sqlDependency = new SqlDependency(sqlCommand);
sqlDependency.OnChange += onChangeEventHandler;
}

And subscribe sqlDependency.OnChange
Mahfoud Bouabdallah 2022 9-Jun-23 12:52pm View    
I greatly appreciate Richard Deeming for providing an excellent lesson on EF Core. It significantly enhanced my understanding of the subject. Specifically, I struggled with the generic repository and unit of work concept, which caused me considerable frustration. Could you kindly offer some guidance on how to adopt a more effective approach?