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
1022 B
39 lines
1022 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Entities.SQLudeoDB
|
|
{
|
|
public class SuccessEntity
|
|
{
|
|
[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 bool IsFinished { get; set; }
|
|
|
|
public SuccessEntity() { }
|
|
|
|
public SuccessEntity(int userId, int inquiryId, bool isFinished)
|
|
{
|
|
UserId = userId;
|
|
InquiryId = inquiryId;
|
|
IsFinished = isFinished;
|
|
}
|
|
|
|
public SuccessEntity(UserEntity user, InquiryEntity inquiry, bool isFinished)
|
|
{
|
|
User = user;
|
|
Inquiry = inquiry;
|
|
IsFinished = isFinished;
|
|
}
|
|
}
|
|
}
|