OneToManyRel.cs 962 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*-------------------------------------------------------------------------
  2. * 功能描述:OneToManyRel
  3. * 作者:xulisong
  4. * 创建时间: 2019/6/17 10:49:50
  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 OneToManyRel:RelationshipBase
  15. {
  16. public OneToManyRel()
  17. {
  18. }
  19. public OneToManyRel(BimId relatingObject)
  20. {
  21. RelatingObject = relatingObject;
  22. }
  23. public OneToManyRel(BimId relatingObject, List<BimId> relatedObjects)
  24. {
  25. RelatingObject = relatingObject;
  26. RelatedObjects = relatedObjects;
  27. }
  28. /// <summary>
  29. /// 关联对象
  30. /// </summary>
  31. public List<BimId> RelatedObjects { get; set; }
  32. }
  33. }