コード例 #1
0
        public BLector(Lector lector)
        {
            var     config     = new MapperConfiguration(cfg => cfg.CreateMap <Lector, BLector>());
            Mapper  mapper     = new Mapper(config);
            BLector tmpBLector = mapper.Map <BLector>(lector);

            this.FullName = tmpBLector.FullName;
            this.Email    = tmpBLector.Email;
            this.Password = tmpBLector.Password;
        }
コード例 #2
0
 private bool Equals(BLector other)
 {
     return(FullName == other.FullName &&
            Email == other.Email &&
            Password == other.Password);
 }