2023-09-11 19:39:00 +02:00
|
|
|
|
using server.Database.Model;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace server.Database.Entity.Report
|
|
|
|
|
{
|
2023-09-21 16:01:47 +02:00
|
|
|
|
public class ReportEntity : Model.Report
|
2023-09-11 19:39:00 +02:00
|
|
|
|
{
|
|
|
|
|
private readonly ModelContext _modelContext;
|
2023-09-21 16:01:47 +02:00
|
|
|
|
private UserEntity UserEntity { get; set; }
|
2023-09-11 19:39:00 +02:00
|
|
|
|
|
2023-09-21 16:01:47 +02:00
|
|
|
|
public ReportEntity(ModelContext modelContext)
|
2023-09-11 19:39:00 +02:00
|
|
|
|
{
|
|
|
|
|
UserEntity = new UserEntity(modelContext);
|
|
|
|
|
_modelContext = modelContext;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void InsertReport()
|
|
|
|
|
{
|
2023-09-21 16:01:47 +02:00
|
|
|
|
_modelContext.Reports.Add(this);
|
2023-09-11 19:39:00 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|