diff options
author | marcinzelent <marcin@zelent.net> | 2017-05-18 07:31:30 +0200 |
---|---|---|
committer | marcinzelent <marcin@zelent.net> | 2017-05-18 07:31:30 +0200 |
commit | cb5917247c407e207e649641d829c5b5563a84c1 (patch) | |
tree | 72c569d6292e50591604faedc921bcc37a3f4195 /ApartmentManager/HousingWebApi/Models/ChangeComment.cs | |
parent | 372bef8b2f496b97df63d33900c9c244daee73a1 (diff) |
Remade data model and controllers to match the new database design.
Diffstat (limited to 'ApartmentManager/HousingWebApi/Models/ChangeComment.cs')
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/ChangeComment.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ApartmentManager/HousingWebApi/Models/ChangeComment.cs b/ApartmentManager/HousingWebApi/Models/ChangeComment.cs new file mode 100644 index 0000000..3c5d8d8 --- /dev/null +++ b/ApartmentManager/HousingWebApi/Models/ChangeComment.cs @@ -0,0 +1,22 @@ +namespace HousingWebApi +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.ComponentModel.DataAnnotations.Schema; + using System.Data.Entity.Spatial; + + [Table("ChangeComment")] + public partial class ChangeComment + { + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + public int CommentId { get; set; } + + public int ChangeId { get; set; } + + public string Comment { get; set; } + + public virtual ApartmentChange ApartmentChange { get; set; } + } +} |