在我的界面中,我会有很多功能。所有这些都将绑定为 OperationContract。
有没有办法避免在这些函数中的每一个上输入 [OperationContract] ?
[ServiceContract]
public interface IStudentService
{
    [OperationContract]
    String GetStudentFullName (int studentId);
    [OperationContract]
    StudentInformation GetStudentInfo (int studentId);
    ... about 20 more
}