﻿using BrockAllen.MembershipReboot;
using BrockAllen.MembershipReboot.Ef;
using BrockAllen.MembershipReboot.Relational;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GAC_ERP.Infra.IdentityServer.MembershipReboot {
	public class MRUser : RelationalUserAccount {
		
		[Display(Name = "Nome")]
		public virtual string FirstName { get; set; }
		
		[Display(Name = "Sobrenome")]
		public virtual string LastName { get; set; }
		
		[Display(Name = "Data de nascimento")]
		public virtual DateTime? Age { get; set; }
	}

	public class MRUserAccountService : UserAccountService<MRUser> {
		public MRUserAccountService(MRConfig config, MRUserRepository repo)
			: base(config, repo) {
		}
	}

	public class MRUserRepository : DbContextUserAccountRepository<MRContext, MRUser> {
		public MRUserRepository(MRContext ctx)
			: base(ctx) {

		}
	}

}
