mirror-ac/server/Database/Entity/Report/ReportEntity.cs
2023-09-22 00:01:47 +10:00

26 lines
629 B
C#

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
{
public class ReportEntity : Model.Report
{
private readonly ModelContext _modelContext;
private UserEntity UserEntity { get; set; }
public ReportEntity(ModelContext modelContext)
{
UserEntity = new UserEntity(modelContext);
_modelContext = modelContext;
}
public void InsertReport()
{
_modelContext.Reports.Add(this);
}
}
}