คำถามติดแท็ก criteria-api

2
เกณฑ์ SpatialRestrictions IsWithinDistance NHibernate.Spatial
มีใครนำสิ่งนี้ไปใช้หรือรู้ว่ามันยากที่จะนำไปใช้ / มีคำแนะนำใด ๆ public static SpatialRelationCriterion IsWithinDistance(string propertyName, object anotherGeometry, double distance) { // TODO: Implement throw new NotImplementedException(); } จาก NHibernate.Spatial.Criterion.SpatialRestrictions ฉันสามารถใช้ "โดยที่ NHSP.Distance (PROPERTY,: point)" ใน hql แต่ต้องการรวมแบบสอบถามนี้กับแบบสอบถามเกณฑ์ที่มีอยู่ของฉัน ในขณะที่ฉันสร้างรูปหลายเหลี่ยมคร่าวๆและใช้ criteria.Add(SpatialRestrictions.Intersects("PROPERTY", myPolygon)); แก้ไข มีต้นแบบที่ทำงานโดยการโอเวอร์โหลดคอนสตรัคเตอร์บน SpatialRelationCriterion เพิ่ม SpatialRelation.Distance ใหม่ public static SpatialRelationCriterion IsWithinDistance(string propertyName, object anotherGeometry, double distance) { …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.