ASP.NET MVC 5 : 3.6 Model - Many to many relationship

ASP.NET MVC 5 : 3.6 Model - Many to many relationship

Aristotelis Pitaridis

10 лет назад

28,765 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@MrTonyradford
@MrTonyradford - 18.10.2015 20:54

That was a very good explanation. Thanks.

Ответить
@dypes26
@dypes26 - 06.11.2015 22:28

A simple and great explanation.

Ответить
@WeCanCodeIT
@WeCanCodeIT - 08.12.2015 20:29

Excellent tutorial!

Ответить
@DynamicSoft
@DynamicSoft - 23.05.2016 07:20

fantastic tutorial. Go ahead .....

Ответить
@DynamicSoft
@DynamicSoft - 23.05.2016 07:20

Do you have any blog or code site ?

Ответить
@dgtal2926
@dgtal2926 - 03.06.2016 02:49

Excellent tutorial Aristotelis. Is it possible to download the project from somewhere?

Ответить
@Jackbeti
@Jackbeti - 12.08.2016 13:34

Thank's

Ответить
@PcFreakUndHacker
@PcFreakUndHacker - 19.08.2016 11:09

Thank you!

Ответить
@metallicarula
@metallicarula - 01.09.2016 18:47

very good

Ответить
@natesofamerica
@natesofamerica - 07.10.2016 16:54

Why won't this let me do the same thing in reverse? Books to Authors? I want to list books with the author in the details, yet it doesn't seem to see that relationship and won't work when trying to display it in the details page.

Ответить
@LightMinz
@LightMinz - 02.11.2016 19:33

THIS IS SO HELPFUL

excellent explanation , thank you so much !

Ответить
@baslyrahma2651
@baslyrahma2651 - 07.03.2017 00:55

Thank u ! This is so helpful

Ответить
@johnbernard567
@johnbernard567 - 20.07.2017 17:15

how can I accomplish this in a create action method? I understand how it works with the edit method because an ID parameter is passed in to be used in the LINQ query. I want to use to when creating an author.

Ответить
@ramisheikha4680
@ramisheikha4680 - 23.07.2017 21:18

Thank u ! This is so helpful

Ответить
@muradheyderov
@muradheyderov - 28.07.2017 23:43

I want to user can check marks when he is creating a user, not just editing a user. But i do not know how to send data to view from controller. Can you give me any suggestion?

Ответить
@MartinCerdeira
@MartinCerdeira - 03.08.2017 17:48

I think this wont scale well... you are going through all the list of AuthorsToBooks and check if it is checked.

Ответить
@nayabkhan7613
@nayabkhan7613 - 26.08.2017 22:39

Mr.Aristotelis can u provide me with MyDBContext class please?

Ответить
@hafizsiddiq9354
@hafizsiddiq9354 - 01.11.2017 08:50

Can you provide me the code

Ответить
@arielg3479
@arielg3479 - 12.01.2018 20:23

Hi, Can you explain how to perform the create method? I can see the list of books in the template, but I can not save the record by post.

Ответить
@ahsan-ul-haq9215
@ahsan-ul-haq9215 - 19.03.2018 11:03

very nice

Ответить
@nkululekosibiya423
@nkululekosibiya423 - 03.08.2018 15:55

You Sir, Mr Pitaridis, are a savior.

Ответить
@bronco_billy
@bronco_billy - 27.09.2018 04:28

Awesome!

Ответить
@prajaktachari9393
@prajaktachari9393 - 26.10.2018 08:28

Hi, Mr. Aristotelis, can you please tell me how to put client side validation for the categories while updating?

Ответить
@noureddinehsaini2511
@noureddinehsaini2511 - 21.12.2018 02:05

Hi, Mr. Aristotelis, can you please help me for create methode

Ответить
@davidmercado8309
@davidmercado8309 - 16.01.2019 03:22

It was a very good tutorial, however it missed one important part: explanation of the views

Ответить
@PhilSmith1980
@PhilSmith1980 - 20.03.2019 22:23

This is an excellent and clear example thank you. I have struggled with updating using other methods, because my ViewModel is actually made of several models and viewmodels.

Ответить
@gabrielnzete8913
@gabrielnzete8913 - 03.08.2019 01:14

Can multiselect input be used instead of checkbox in this example

Ответить
@azharcoolhaiyaar
@azharcoolhaiyaar - 17.08.2020 09:38

do you have source code
Linq command not working

Ответить
@mubashirayub6630
@mubashirayub6630 - 03.10.2020 01:32

Hi, I am getting all boxes checked or view shows all books in details even those which are not checked, kindly give me solution...

Ответить
@mubashirayub6630
@mubashirayub6630 - 05.10.2020 01:48

Hi, kindly share the code of EDIT for CREATE, because I have to choose multiple Books of same Author at the time of Author creation...

Ответить
@tiagocouto6607
@tiagocouto6607 - 03.12.2020 17:11

i just dont understand one thing here, is why we dont use the Author class already implemented to add a list of Books, Wouldnt it be more easier? Because than I think we wouldn't need to be creating ViewModel Objects and changing the Edit View of Author for AuthorViewModel.. If someone could explain to me why we actually create those 2 new classses ( ViewModels ) i would appreciate alot

Ответить
@seviacato9924
@seviacato9924 - 17.12.2020 06:21

Thanks very much. This was extremely useful for my project.

Ответить
@ZNAXNOR
@ZNAXNOR - 12.01.2024 08:39

Thank you very much.

Ответить