OneToOneRel.cs 942 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*-------------------------------------------------------------------------
  2. * 功能描述:OneToOneRel
  3. * 作者:xulisong
  4. * 创建时间: 2019/6/17 10:49:09
  5. * 版本号:v1.0
  6. * -------------------------------------------------------------------------*/
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. namespace JBIM.Relationship
  13. {
  14. public class OneToOneRel : RelationshipBase
  15. {
  16. public OneToOneRel()
  17. {
  18. }
  19. public OneToOneRel(BimId relatingObject)
  20. {
  21. RelatingObject = relatingObject;
  22. }
  23. public OneToOneRel(BimId relatingObject, BimId relatedObject)
  24. {
  25. RelatingObject = relatingObject;
  26. RelatedObject = relatedObject;
  27. }
  28. /// <summary>
  29. /// 关联对象
  30. /// </summary>
  31. public BimId RelatedObject { get; set; }
  32. }
  33. }