0
나는 상당한 양의 검색을 수행했지만 아직 WCF 데이터 서비스를 통해 전선을 통과 한 EntityFramework 4.0 엔티티를 검증하는 쉬운 방법을 찾지 못했습니다. 기본적으로 저는 클라이언트에서 다음과 같이 뭔가를하고 싶습니다.EntityFramwork 4.0 클래스의 유효성을 검사하는 가장 좋은 방법은 무엇입니까?
Proxy.MyEntities entities = new Proxy.MyEntities(
new Uri("http://localhost:2679/Service.svc"));
Proxy.Vendor vendor = new Proxy.Vendor();
vendor.Code = "ABC/XYZ";
vendor.Status = "ACTIVE";
// I'd like to do something like the following:
vendor.Validate();
entities.AddToVendors(vendor);
entities.SaveChanges();
이와 관련한 도움이 필요하시면 크게 감사드립니다!