我使用此合约在wcf中创建服务:
namespace CMSManagement.Domain.Repository
{
[ServiceContract]
public interface IRepository<TEntity> where TEntity:class
{
[OperationContract]
TEntity FindById(Guid id);
[OperationContract]
bool Add(TEntity entity);
[OperationContract]
bool Remove(TEntity entity);
[OperationContract]
bool Edit(TEntity entity);
[OperationContract]
bool Save();
[OperationContract]
IQueryable<TEntity> Get();
}
}
<endpoint address=""
binding="basicHttpBinding"
bindingConfiguration="secureHttpBinding"
contract="CMSManagement.Domain.Repository.IRepository"/>
但webconfig找不到这个界面为什么?