namespace RepositoryFactory.Interface
{
public interface ISelectionFactory<TIdentityObject>
{
DbCommand ConstructSelectCommand(Database db, TIdentityObject idObject);
}
}
namespace SafetypadDAL
{
public class T_INCIDENT_SelectFactory:ISelectionFactory<T_INCIDENT>
{
public DbCommand ConstructSelectCommand(Database db, T_INCIDENT idObject)
{
//my business codes will be here
return command;
}
}
}
这是程序。C#抱怨没有实现接口方法
在这里你不能找到任何错误的签名。
错误信息再清楚不过:“SafetypadDAL.T_INCIDENT_SelectFactory”不实现接口成员“RepositoryFactory.Interface.ISelectionFactory
2009-08-12 09:17:13
换句话说,你可能会认为你实施正确的方法,但你没有。仔细检查以确保您的方法采用正确的参数类型,并且您已正确拼写方法名称。 – 2009-08-12 09:18:28
签名是正确的。 – Partha 2009-08-12 10:01:53