FooWithDefaults.cs 810 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Data.Linq.Mapping;
  5. using System.Text;
  6. namespace MonoTests.Common
  7. {
  8. class FooWithDefaults
  9. {
  10. public string Column1 { get; set; }
  11. public int Column2 { get; set; }
  12. public string PrimaryKeyColumn1 { get; set; }
  13. public int PrimaryKeyColumn2 { get; set; }
  14. public bool PrimaryKeyColumn3 { get; set; }
  15. public string ForeignKeyColumn1 { get; set; }
  16. public int ForeignKeyColumn2 { get; set; }
  17. public bool ForeignKeyColumn3 { get; set; }
  18. public FooWithDefaults ()
  19. {
  20. Column1 = "hello";
  21. Column2 = 123;
  22. PrimaryKeyColumn1 = "primary key value";
  23. PrimaryKeyColumn2 = 456;
  24. PrimaryKeyColumn3 = true;
  25. ForeignKeyColumn1 = "foreign key";
  26. ForeignKeyColumn2 = 789;
  27. ForeignKeyColumn3 = true;
  28. }
  29. }
  30. }