Ejemplo n.º 1
0
        public static DALLogin GetDALEntity(this Login_Mail ORMEntity)
        {
            if (ORMEntity == null)
            {
                throw new ArgumentNullException($"{ORMEntity} is null!");
            }

            return(new DALLogin()
            {
                Id = ORMEntity.Id,
                Login = ORMEntity.Login,
                Mail = ORMEntity.Mail,
                //IdProgrammer = (int)ORMEntity.IdProgrammer,
                //IdRole = (int)ORMEntity.IdRole,
                Password = ORMEntity.Password,
            });
        }
Ejemplo n.º 2
0
        public void Create(DALLogin e)
        {
            Login_Mail a = LoginMapper.GetORMEntity(e);

            context.Set <Login_Mail>().Add(a);
        }