45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
using WebDoorCreator.Data.DbModels;
|
|
|
|
namespace WebDoorCreator.Data
|
|
{
|
|
public class DoorOpConfiguration : IEntityTypeConfiguration<DoorOpModel>
|
|
{
|
|
|
|
|
|
#region Public Methods
|
|
|
|
public void Configure(EntityTypeBuilder<DoorOpModel> builder)
|
|
{
|
|
|
|
// Default seeded users
|
|
|
|
}
|
|
|
|
#endregion Public Methods
|
|
|
|
#region Protected Fields
|
|
|
|
#endregion Protected Fields
|
|
|
|
#region Protected Methods
|
|
|
|
//protected DoorOpModel getNewDoorOP(int DoorOpId, int DoorId, int DoorOpTypId, string Description, DateTime DateIns, string UserIdIns, DateTime DateMod, string UserIdMod, string JsoncConfigVal)
|
|
//{
|
|
// var newRec = new IdentityUser
|
|
// {
|
|
// UserName = email,
|
|
// NormalizedUserName = email.ToUpper(),
|
|
// Email = email,
|
|
// NormalizedEmail = email.ToUpper(),
|
|
// EmailConfirmed = true,
|
|
// PasswordHash = hasher.HashPassword(null!, passwd),
|
|
// };
|
|
// return newRec;
|
|
//}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |