You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Entities
|
|
{
|
|
public class NotepadEntity
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
[ForeignKey(nameof(User))]
|
|
public int UserId { get; set; }
|
|
public UserEntity User { get; set; }
|
|
|
|
[ForeignKey(nameof(Inquiry))]
|
|
public int InquiryId { get; set; }
|
|
public InquiryEntity Inquiry { get; set; }
|
|
public string Notes { get; set; }
|
|
|
|
public NotepadEntity() { }
|
|
|
|
public NotepadEntity(int id, int userId, UserEntity user, int inquiryId, InquiryEntity inquiry, string notes)
|
|
{
|
|
Id = id;
|
|
UserId = userId;
|
|
User = user;
|
|
InquiryId = inquiryId;
|
|
Inquiry = inquiry;
|
|
Notes = notes;
|
|
}
|
|
public NotepadEntity(int userId, UserEntity user, int inquiryId, InquiryEntity inquiry, string notes)
|
|
{
|
|
UserId = userId;
|
|
User = user;
|
|
InquiryId = inquiryId;
|
|
Inquiry = inquiry;
|
|
Notes = notes;
|
|
}
|
|
}
|
|
}
|