Component.cs 488 B

1234567891011121314151617181920212223242526
  1. using MongoDB.Bson.Serialization.Attributes;
  2. namespace Common.Base
  3. {
  4. public class Component: Object
  5. {
  6. private Entity owner;
  7. [BsonIgnore]
  8. public Entity Owner {
  9. get
  10. {
  11. return owner;
  12. }
  13. set
  14. {
  15. this.owner = value;
  16. this.Guid = this.owner.Guid;
  17. }
  18. }
  19. protected Component()
  20. {
  21. }
  22. }
  23. }