public void Delete(DalUserRole e) { var role = e.ToOrmUserRole(); role = _context.Set <UserRole>().Single(u => u.Id == role.Id); _context.Set <UserRole>().Remove(role); }
public void Delete(DalUserRole e) { _context.UserRoles.Remove(e.ToOrmUserRole()); }
public void Create(DalUserRole e) { _context.UserRoles.Add(e.ToOrmUserRole()); }
public void Create(DalUserRole e) { _context.Set <UserRole>().Add(e.ToOrmUserRole()); }
public void Create(DalUserRole entity) { context.UserRoles.Add(entity.ToOrmUserRole()); }