A set of technologies in the .NET Framework for building web applications and XML web services.
the error is pretty clear. EmployeeDB.DataSetChange() requires two parameters, and your code passes one,
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I got this error for this code :
#region Database Communication.
public void DataMaintenance(Employee anEmp)
{
//perform a given database operation to the dataset in meory;
**employeeDB.DataSetChange(anEmp);//calling method to do the insert
employees.Add(anEmp);//
}
//***Commit the changes to the database
public bool FinalizeChanges(Employee employee)
{
//***call the EmployeeDB method that will commit the changes to the database
return employeeDB.UpdateDataSource(employee);
}
#endregion
Severity Code Description Project File Line Suppression State
Error CS7036 There is no argument given that corresponds to the required formal parameter 'operation' of 'EmployeeDB.DataSetChange(Employee, DB.DBOperation)' GoodFoodSystem C:\Users\patiance\OneDrive\Desktop\INF2011\startingFile-1\GoodFoodSystem\GoodFoodSystem\GoodFoodSystem\BusinessLayer\EmployeeController.cs 41 Active
A set of technologies in the .NET Framework for building web applications and XML web services.
An extension of Azure for running apps in an on-premises environment and delivering Azure services in a datacenter.
the error is pretty clear. EmployeeDB.DataSetChange() requires two parameters, and your code passes one,