Kamil Pisz
Kamil Pisz
CC#
Created by Kamil Pisz on 10/10/2022 in #help
[EFCore] add many Parent entities with Child entities, How to connect them in single SaveChanges
but not sure if i have to use AddRange() for children list now
7 replies
CC#
Created by Kamil Pisz on 10/10/2022 in #help
[EFCore] add many Parent entities with Child entities, How to connect them in single SaveChanges
UPDATE: so i found a way to add list of child entities to single parent category using Navigation Property in Parent Entity
public virtual ICollection<ChildCategory> ChildCategories { get; set; } = new List<ChildCategory>();
public virtual ICollection<ChildCategory> ChildCategories { get; set; } = new List<ChildCategory>();
newParentCategory.ChildCategories = newListChildCategoryToAdd;
newParentCategory.ChildCategories = newListChildCategoryToAdd;
7 replies
CC#
Created by Kamil Pisz on 10/10/2022 in #help
[EFCore] add many Parent entities with Child entities, How to connect them in single SaveChanges
7 replies
CC#
Created by Kamil Pisz on 10/10/2022 in #help
[EFCore] add many Parent entities with Child entities, How to connect them in single SaveChanges
but due to frequency of that function will be use i want to optimize it to less SaveChanges()
7 replies
CC#
Created by Kamil Pisz on 10/10/2022 in #help
[EFCore] add many Parent entities with Child entities, How to connect them in single SaveChanges
that new Entity Id will be my newChildCategory.ParentId
7 replies
CC#
Created by Kamil Pisz on 10/10/2022 in #help
[EFCore] add many Parent entities with Child entities, How to connect them in single SaveChanges
so there is other way, i can just call SaveChanges for ever iteration in my Foreach and them withdraw new Entity ID
7 replies
CC#
Created by Kamil Pisz on 9/9/2022 in #help
Jquery.load() with MVC how to load view when Exception appear
i think its due to status 500 jquery.load return success == false and not continue to load
9 replies
CC#
Created by Kamil Pisz on 9/9/2022 in #help
Jquery.load() with MVC how to load view when Exception appear
9 replies
CC#
Created by Kamil Pisz on 9/9/2022 in #help
Jquery.load() with MVC how to load view when Exception appear
its in my cshtml page in script sections
9 replies
CC#
Created by Kamil Pisz on 9/9/2022 in #help
Jquery.load() with MVC how to load view when Exception appear
im trying to implement dynamic load page in asp net core MVC with JQUERY
$("#product-info").load('@Html.Raw(Url.Action("ScanTempDeliveryItemOnModal2"),
$("#product-info").load('@Html.Raw(Url.Action("ScanTempDeliveryItemOnModal2"),
its fine but i have a problem when there is some error (status 500), i have costum Exception HTML view return in my app (throw new CustomReturnException()) and this is returned in this above method response but jquery.load didnt load this ;/ its there a way to just ignore not success in jquery.load and just load my error page?
9 replies