Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "antonis"

6.5 angular .net core. I m using default authentication. I suppose is JWT isn't it?

Hi,

How do I get Token expiration date?

Hi,

I have a system developed with aspnet zero (.net core & angular). I have a microservice now that receives requests from a user, perform some actions and then return results back. I need this microservice to use the permissions that are set through aspnet zero. How can I implement such functionality?

Thanks in advance

I have to remove them manually.

I am trying to change the Abp prefix from table names. I am using the following method

protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

            modelBuilder.ChangeAbpTablePrefix<Tenant, Role, User>("");
            }

It successfully renames all tables except

AbpPersistedGrants

I have an AppService that has an update method. I am receiving DateFrom and DateTo and I need to check if entered dates already exist in the database. Usually in aspnet boilerplate where do I perform that check? I want to keep AppServices simple without any database validation logic.

Thanks in advance

@demirmusa Which table?

I am working on a scenario where I have the following entities with a many to many relationship:

public class Tutor
{
    public int TutorId { get; set; }

    public string Name { get; set; }

}
public class Student
{
    public int StudentId { get; set; }
    public string Name { get; set; }
}

public class TutorStudent
{
    public int TutorId { get; set; }
    public Tutor Tutor { get; set; }

    public int StudentId { get; set; }
    public Student Student { get; set; }

}

and the following Dtos


public class StudentDto
{
    public int StudentId { get; set; }
    public string Name { get; set; }
    public IList<TutorDto> Tutors { get; set; }
}

public class StudentInputDto
{
    public int StudentId { get; set; }
    public string Name { get; set; }
    public IList<int> SelectedTutors { get; set; }
}


public class TutorDto
{
    public int TutorId { get; set; }
    public string Name { get; set; }
}

I have two methods:

[HttpGet]
public async Task<StudentDto> UpdateStudent(EntityDto<int> input)
{
          return student from database
}

[HttpPost]
public async Task UpdateStudent(StudentInputDto input)
{
    if (input == null)
    throw new NoDataSentException();

    Student existingStudent = await (from student in studentRepository.GetAll()
        .Include(x => x.Tutor)
    where student.Id == input.Id
    select student).SingleOrDefaultAsync();


    ObjectMapper.Map(input, existingStudent);

    await studentRepository.UpdateAsync(existingStudent);
}

The get method works but for the post how do I do the mapping to the many-to-many table?

I am using aspnetzero 6.5.0

Hi,

Iam using angular and aspnet core. Trying to change the position of toaster to bottom but it does no work. still shows top right


abp.notify.warn("Test message", "title", {
                    position: "bottom-start"
                })
Showing 21 to 30 of 202 entries