A
ABC
Can I create an Interface which have a method have variate type parameters?
I want create an Interface named IDataEditable which have two methods:
LoadRecord and SaveRecord.
As the LoadRecord have variate type parameters based on the record primary
key definition such as:
The product table should be:
LoadRecord(string productCode)
The OrderDetail table should be:
LoadRecord(string OrderNo, string ProductCode)
Should I write the code as follow?
interface IDataEditable
{
void LoadRecord();
void SaveRecord();
}
I want create an Interface named IDataEditable which have two methods:
LoadRecord and SaveRecord.
As the LoadRecord have variate type parameters based on the record primary
key definition such as:
The product table should be:
LoadRecord(string productCode)
The OrderDetail table should be:
LoadRecord(string OrderNo, string ProductCode)
Should I write the code as follow?
interface IDataEditable
{
void LoadRecord();
void SaveRecord();
}