﻿using System.Data.Entity.ModelConfiguration;
using EasyProject.Models;

namespace EasyProject.DataAccess.EntityFramework.Mappings
{
    public static class IActivableMapping
    {
        public static void MappingForIActivable<T>(this EntityTypeConfiguration<T> baseMapping)
            where T : class, IActivable
        {
            baseMapping.Property(x => x.Enabled).IsRequired();
        }
    }
}