Это видео недоступно.
Сожалеем об этом.
Master detail CRUD in Asp.net core 5 MVC using EF Core. [ Source Included ]
HTML-код
- Опубликовано: 13 мар 2021
- Source Code
codesbyaniz.bl...
Master Detail Part 2
• Master Detail Crud usi...
From this video tutorial you will learn how to make a Master Detail CRUD Application using ASP.NET Core MVC using EF Core.
In Here , I have used advanced features of Entity framework core.
This Application is done in MVC5.
The main objective of this application to save the master and detail records together in a easiest and best way.
ASP .NET Image View Component Video Link
• ASP.NET Core Image Fil...
DB First CRUD Video Link
• Entity Framework Core ...
Asp.net core crud with page size and search
• Asp.net core crud with...
Asp.net core crud with Ajax and Partial View using efcore
• AJAX asp.net core 5 MV...
Please watch the video to learn more...
Excellent, haven't seen a tutorial like this before. Thank you so much. Please create more videos like this. you are the best teacher
For me now , this is the Best in RUclips. 👍 Thank you
Glad to hear that! You are most welcome.
Very easy to understand and highlighting the important points is the best.
Glad you liked it
Excellent, haven't seen a tutorial like this before. Thank you so much. Please create more videos like this.
Thanks, will do!
Thank You so much for this tutorial. this is the best Master Detail CRUD. It helped me a lot to complete my project. please create a sales invoice using this method.
you explained everything so nicely that things became easy
Thanks
Appreciating your time and effort took for this video
you are explained very clearly sir, thank you very much....
You are most welcome. please stay tuned.
Super.... 5 Stars... You are really really excellent teacher and informative as required.
Wow, thank you!
Thanx Aniz this is the best master details video in RUclips :)
Welcome. and thanks for the Rewards.
Excellent way of explaining the concept
One of the excellent tutorial of the youtube
Thanks
Excellent work, Thank you so Much.
You are welcome!
Thank you for the good and useful tutorial :)
Welcome, Glad you liked it
Hi
Aniz, I have learnt a lot of the first & the second parts of the tutorial. I am immune to see the third part to get the whole picture of the great project you have posted which is really very helpful for beginners & intermediate.
God bless you!
My regards;
Will upload soon. Thanks for watching.
@@CodeSbyAniz Still waiting for the third part... is it in?
Excellent my friend!!!
very nice bro.Excellent work.itz very useful for beginners
finally ,, thank you a lot mr i really appreciate it
awsome awsome awsome great wonderful amazing excelent niceble 5star
Thank you so much 😀
Greate video. thanks
Great tutorial for MVC Core master-detail!
Thanks
in 25:00 , what is the completion of line 61?
What is passed to window.url.createObjectUrl ??
this tutorial really helpful, big thanks Aniz
You are Most Welcome. Stay Tuned.
Great tutorial, really nice and excellent
Thank You, Part 3 Released.
Great Stuff, Thanks for sharing!!!!!!!!!
My pleasure!
Excellent Job , Big like dear friend .
Thank you so much 😀
Thanks for your contribution ,it is very important for us
It's my pleasure.
Thank you Aniz
Always welcome
Very Good Content. God Bless You. Thanks
So nice of you
Unable to create an object of type 'ResumeDbContext'. For the different patterns supported at design time.............. i am getting this error while doing migration
Excellent Video 👌 need more videos please
Thank you, More to come. stay tuned.
I have subscrobed and like the video, as you have done very good jobs
Very nice explanation. !!! Keep it up.
Glad you liked it
That's great and awesome👍👍👍
Thank you! Cheers!
Very good tutorial
I have a question about if the array of experiences is not start from zero or is not on sequence number. I cannot get the array of experience objects. How to solve it.(let say u try to add few rows of experience and then delete the first few row.Then when press the submit button.The experience array is null)
Will show in the part 3. part 3 is almost completed. and it is going to be very interesting.
@CodeS I am confused, there are 7 videos in this playlist. are video 1 and 2 related and there rest of 5 videos are independent for additional learning?
Great Job, It Is Very Helpful bro and I am new to this channel.
Welcome on board! Thank You.
I'am working on VS code as my OS is Ubuntu can you provide me the whole project as iam unable to create the View automatically for provided action methods through scaffolding.
I had this SQL exception "Invalid column name 'PhotoUrl'.' " I do not think it was stored in the database, when I did the migration I got a warning that there was already an object named applicants. I find your tutorials exceptionally good as I really struggle with things but, you explain things very well. I could re-do the whole solution but I would like to understand what it is I did wrong. Many Thanks!!
simple, drop the database and delete all migrations. then do the Add-Migration. that will solve the issue.
Please teach this with Api method
In the function to AddItem(btn) the 'btn' variable stays grey and when I mouse over the variable it says " 'btn' Is declared but value is never read". Help please as your lessons are very good!! Thank You so much!
Excellent demonstration Mr.Aniz. Keep it up. If possible provide the same video for razor pages environment
Thank You, Sure I will.
Really, thank you very much.
You are Most welcome!
I could not get the buttons to change as the btn prop was null.. I copied the code from you article so it was the same code. Not sure why the javascript did not show and hide the buttons as needed...
Excellent work dear friend
Thank you! Cheers!
Awesome
Thank You !! . Very informative :)
Glad it was helpful! You are welcome.
nice
Thanks
I love your content!! 👍👍
Thanks a Lot. So nice to hear it.
Excellent tutorial I tried it but I have one issue I have existing database and I don't use migration I need to use master details and there is foreign key relation and in master table I have this line public virtual ICollection employees { get; set; } not List when I changed it to list its not inserting the details data to details table also when I update model from database again it goes back ICollection instead of List and I cannot delete the existing database and create new migration can I use this ICollection instead of List ?
my code is not working. function AddItem(btn) not working. i am able to call function but not working to add table. please help. Is there any version Issue ?
Awesome. Thanks
You're welcome!
In ResumeController, I got error "context.Applicants.ToList()"
{
public class ResumeController : Controller
{
private readonly ResumeController _context;
public ResumeController(ResumeController context)
{
_context = context;
}
public IActionResult Index()
{
List applicants;
applicants = _context.Applicants.ToList();
return View(applicants);
}
What could it bee that is wrong. Thanks for any help.
thank you! Very Very good!!!!
Welcome, Glad you liked it!
Thank you very much.
You are welcome!
thanks Aniz, for made this video :)
but I have problem part on 34:56 could you complete that code I can't see completely onchange="document.getElementById('PreviewPhoto').src = window.URL.createObjectURL(this.?)
"document.getElementById('PreviewPhoto').src = window.URL.createObjectURL(this.files[0]) ">
welcome. please watch it again. there is no error in the Application. may be send your project to codesbyaniz@gmail.com. i will fix and send.
Thanks
Most Welcome.
Nice Tutorials
Glad you like them!
Bro, I cant see the Code! 24:58, Line 61. Why you dont have a GitHub-Repository...?
Edit and Update ka Bhi Video Bana Do Please
tha nk you bro :)
you are most welcome
can u make tutorial to reporting in asp.net core mvc ??????
Thank you for the tutorial. Data is saved successfully to the database when we add new rows, but the detail section does not get saved when press the delete button to remove a row.
try this video ruclips.net/video/k5USpRrQhM8/видео.html
What code followed: window.URL.createObjectURL()...could not see it when you scrolled...
the missing code was createObjectURL(this.files[0])
Thank you bro , but what about edit / update. Please if you could make a video for editing
Welcome. That will be my Next Video.......
hii please same concept in google web app script
When the next vedio is coming for this series . Really very helpfull and good thank you man for your guidance
Part 3 Released.
one things when changes anything please clarify where to changes i confused... when u changes the code please just notice that changes .......or explaination is very good
sure , will do. Thanks for letting me know.
it excellent master detail, could you share its complete source? or link from where we download
complete code is shown on the screen. please watch the full video.
Hi, I can't upload photo ! Because one bit of the code is hiden in vidéo
here it is:
src = window.URL.createObjectURL(this.????????)" />
onchange="document.getElementById('PreviewPhoto').src = window.URL.createObjectURL(this.files[0])">
In the Line 61 of the view create what is the line code complete please
@Html.EditorFor(x => x.Experiences[i].CompanyName, new { htmlAttributes = new { @class = "form-control" } })
I am getting an error @for (int i = 0; i < Model.Testrequestdetails.Count; i++)
System.NullReferenceException: 'Object reference not set to an instance of an object.'
vydehi_his.Pages.Testrequestopip.CreateModel.Testrequestdetails.get returned null. Can u help me please
I am releasing a video on advance master detail grid with source code. may be that will solve many issues. so please wait for few days. Thanks for watching.
the last row's data of exptable is not saved into Db. I have to add other empty row, then it is saved. How can I fix this?
no issues in the code, watch part 2 and part 3 also. complete code is shown in the video. watch again you can fix it.
hi - thank you for that video - but how i can generate models from exiting database
You are Welcome. please watch the below videos.
Database First CRUDs with EF Core in MVC
ruclips.net/video/JvN8yAp8epk/видео.html
ruclips.net/video/nzeHAFY0WX4/видео.html
On my visual studio the table.insertRow() does not exist. Any suggestions to make it work?
table.insertRow() is JavaScript function, you don't need to worry if visual studio shows error. just compile and run . it should work.
@@CodeSbyAniz my console browser simply says it's not defined
Great video thanks! I have an error in the browser js console that says "Uncaught TypeError: delbtn is null", when I click the add button to add a row. The row is added, but the delete button does not become visible. I noticed in the inspector that the delete and add button units are zero, for example "
I figured it out, I missed a comma in the last rowOuterHtml line, goodness gracious.
Cicha Delete hone k bad nahi work horaha🤔
any suggestion
Thank you very much, the video is very helpful and informative. Where can I find the video for the edit button?
Please follow my Inventory Project. will add all the concepts of asp.net core in it. Including Part3
Kindly provide the complete Source code.
hi dear Aniz, my ADD button doesn't work, I don't know why. please help me because I am sure my code is as same as yours.
sorry for the very delayed reply, I was busy. there is no error in the code. I think you might have solved this issue. but if you still have issue, please send your code to codesbyaniz@gmail.com. I will fix and send you. Thanks
Thank you for such a wonderful learning video. The AddRow() is not working at my end. When checked using the alert() command I could see the rows are being added but they are not being displayed on the screen. Any help would be appreciated.
function AddItem(btn){
var table= document.getElementById('ExpTable');
var rows = table.getElementsByTagName('tr');
alert(rows);
var rowOuterHtml = rows[rows.length - 1].outerHTML;
alert(rowOuterHtml);
alert(table.rows.length);
var newRow= table.insertRow();
newRow.innerHtml = rowOuterHtml;
alert(table.rows.length);
}
Thanks for watching. please find below complete function code.
function AddItem() {
var table = document.getElementById('ExpTable');
var rows = table.getElementsByTagName('tr');
var lastrowIdx = rows.length - 1;
var rowOuterHtml = rows[lastrowIdx].outerHTML;
lastrowIdx = lastrowIdx - 1;
var nextrowIdx = eval(lastrowIdx) + 1;
rowOuterHtml = rowOuterHtml.replaceAll('_' + lastrowIdx + '_', '_' + nextrowIdx + '_');
rowOuterHtml = rowOuterHtml.replaceAll('[' + lastrowIdx + ']', '[' + nextrowIdx + ']');
rowOuterHtml = rowOuterHtml.replaceAll('-' + lastrowIdx, '-' + nextrowIdx);
var newRow = table.insertRow();
newRow.innerHTML = rowOuterHtml;
rebindvalidators();
}
much informative! Thanks for the video. but i have a small problem if i add more then 2 row in Experiences the add button still visible and delete button not show any more after row no 2. can you help me with this?
I also facing same
It's my mistake, solve now, while copy pasting rowOuterHtml of 3rd one is different then 1st 2 😉
glad you fixed it.
Thank you ! Please share all 5 part youtub video link .
Welcome. will upload soon.
Hi sir. There is a error in this concept which you have explained in this tutorial you have uploaded. Error is that when we add multiple experiences detail and delete first experience detail then no record save in experience table so kindly solve this error and guide us THANKS SIR.
you are most welcome. watch the part 3 of this video.
ruclips.net/video/-BM3-MpMtXA/видео.html
this issue is sorted out on part3. but I recommend you to watch part 2 also. ruclips.net/video/HKqGQ0rhe-c/видео.html
how to make a booking sytem using the as.net core 5 and ef
will make a video in the future.
Great.
Can you add filtering and pagination to the grid ?
Thanks and yes, I will add in the near future.
@@CodeSbyAniz
Thanks
Also How to do master detaill crud with blazor ?
Hello. Explain the links between the models, please.
will do in the up coming videos.
I AM GETTING ISSUE IN STARTUP CLASS
TUTORIAL IS DONE IN 2019 VERSION I AM WORKING IN 2022 VERSION SO STARTUP CLASS IS REMOVEDIN THIS VERSION TIME IN VIDEO 8:48 I THINK I AM MISSING THIS STEP THATS WHY I CAN CREAT INDEX VIEW AUTOMATICALLY PLZ LETME KNOW HOW CAN I FIX IT
This will work for any version. Because most of the logics are done using JavaScript. nothing to do with the startup.cs
In new version 2022 insted of "Startup.cs" open "Program.sc" file from root of your project.
Insert ths code at the top of the file:
using Microsoft.EntityFrameworkCore;
using ResumeManagerManager.Data;
//And after this line in Program.cs
//builder.Services.AddControllersWithViews();
//insert this
builder.Services.AddDbContext(options => options.UseSqlServer(builder.Configuration.GetConnectionString("DbConn")));
Thanks for Nice Tutorials , can please sent us some Code ?? becz. getting some error i completed 90% work but get error , can you please help me
you are most welcome
Thanks for your contribution. Could you please share the source code
You are Most Welcome, The complete source is shown in the video. Please note it by pausing the video.
Hi, I have gone through your video more than twice but couldn't find any mention about the custom-input-file that you have used in the AddItem function. Will the Add button function yield any result without this js file? If not than provide the contents of the js file.
Hi, Thanks for watching, Custom-input-file is a class name for image file uploading control. it has nothing to do in the Additem method. Please watch again. definitely you will understand.
Hi I am new to mvc core. How to learn from the scratch?
planning to create MVC crash course from scratch. if more requests come. please vote.
I cant find the copy part use use min 24
Thank you for watching, please check again. Complete source code is shown in the video.
Hello Aniz Vay, I am Unable to add new row by clicking Add button , can you help me once. Kindly check your email once.
please make core version 6
Will make soon. Thanks for watching.
@@CodeSbyAniz Too much thank you for reply....🙂🙂
Hi
where github link ? no full code
Next Part
ruclips.net/video/-Z5OsnalmXA/видео.html
Please see description or full the playlist.
Thank You.
in which edite
coming soon.
Hi dear try to upload code
Complete code is shown in the video. please pause and copy it.
Thank You.
@@CodeSbyAniz Hello, thank you very much for this awesome video, but the code for the onchange in the input for ProfilePhoto is not visible and I don't know what goes in window.URL.createObjectURL(this.???????).
Please what did you pass into the createObjectUrl()
@@rayt6867 okay so what was added to that place was window.URL.createObjectURL(this.files[0])