2024-03-17 13:55:29 +01:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WatchIt.Database.Model
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IEntity<T> where T : class
|
|
|
|
|
|
{
|
|
|
|
|
|
#region METHODS
|
|
|
|
|
|
|
|
|
|
|
|
static abstract void Build(EntityTypeBuilder<T> builder);
|
2024-03-17 14:26:03 +01:00
|
|
|
|
static virtual IEnumerable<T> InsertData() => Array.Empty<T>();
|
2024-03-17 13:55:29 +01:00
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|