Func
매개 변수로 웹 메소드를 노출 할 수 있는지 궁금합니다. 그것은 매개 변수가 없기 때문에Func 매개 변수로 웹 메소드를 노출하는 방법은 무엇입니까?
System.Func [GwModel.Entity, SystemBoolean]를 직렬화 caonnot : 나는 내가 비주얼 스튜디오에서 예외를했다 웹 참조를 업데이트하려고
[WebMethod] public List<Entity> ReadEntities(Func<Entity, bool> predicate) { using (var entities = new GwEntities()) return entities.Entities.Where(predicate).ToList(); }
생성자
모든 해결 방법을 알려주세요.
술어 (검색이 지원되는 경우)? 나는 확실하지 않다. –
@Srinivas : 직렬화 할 수 없다. : – Homam
술어은 Func의 바로 가기입니다. –
Zebi