ForeignKeyAttribute 在接口上不起作用?
public class Client: CompanyForeignKeyMapper
{
public int Client;
}
public class CompanyForeignKeyMapper
{
[ForeignKeyAttribute("Company")]
int ClientId;
}
此代码工作正常。但是当我将 CompanyForeignKeyMapper 类更改为接口时
public interface ICompanyForeignKeyMapper
public class Client: ICompanyForeingKeyMapper --> changed to interface
该属性似乎不起作用。