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

Activities of "Bernard"

Answer

Thks for explanation

So, I have a stupid question how to add a task to the person entity without having a PersonTache entity in the dbcontext. The table was created by itself in the database

This way (mapping from multiselect field and) ?

public class CreateOrEditTacheDto : EntityDto<int?> {

 [Required]
 [StringLength(TacheConsts.MaxIntituleLength, MinimumLength = TacheConsts.MinIntituleLength)]
 public string Intitule { get; set; }

 public DateTime Echeance { get; set; }

 public Priorite Priorite { get; set; }

 public TypeTache TypeTache { get; set; }

 public long UserId { get; set; }

 public List&lt;PersonDto&gt; Persons { get; set; }

}

Answer

Well seen **oguzhanagir **!

But don't understand the id is the same (2)

i understand the problem is ICollection instead of List in each Entity

Answer

Hi @m.aliozkaya,

For the 2 cases the results are 0

And same result for searching Tasks (tache in french) in personappservice :

var dbListPerson = _personRepository.GetAllIncluding(x => x.Taches).Where(x => x.Id == input.Id).ToList(); var dbListPerson2 = _personRepository.GetAllIncluding(x => x.Taches).FirstOrDefault(x => x.Id == input.Id);

Answer

Hi

Thks for quick answer If you look above it is the same code as you var dbList = _tacheRepository.GetAllIncluding(x => x.Persons).Where(x => x.Id == tache.Id);

But no data is returned for person entity

Answer

Hi It’s not a modal view

Answer

Hi Yes from server From App.Services CreateOrEdit method do you mean ?

I would like returned entity Id without closing view to be able to add related other entities

For example Person Id for passing id to quote entity foreign Key person.id in same view without closing it

This for help and example

Hi, thanks it works fine

Hi I have value from line

var file = await _binaryObjectManager.GetOrNullAsync(picture);

but in console can display image message like below

Answer

Hi

Thks

Hi Thks

Showing 21 to 30 of 93 entries