Part 10 Working with multiple tables in mvc

  Рет қаралды 585,940

kudvenkat

kudvenkat

Күн бұрын

Пікірлер: 213
@sendrelamaria3336
@sendrelamaria3336 11 жыл бұрын
Again and again, I'd like to express my deepest thankfulness for all what you do for us. May "God reward you", and sure He will, and reward everybody promptly giving a sincere hand for no return. Please, don't let helping others be a reason to forget yourself and your buried personal needs and wants, if any. A greeting from the +9000 year-old land of Pharaohs, Egypt. Sincerely yours.
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 11 жыл бұрын
Thank you very much for taking time to give feedback. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video. For email alerts, when new videos are uploaded, you may subscribe to my channel.
@53nat0r
@53nat0r 5 жыл бұрын
I cannot believe the quality of the content! Much better than Udemy courses! Just for you I am not skipping an advertisements so that you get a treat out of it too! Hope you make more videos!
@KnappStephan76
@KnappStephan76 10 жыл бұрын
Greetings from Austria and thanks for the tutorials, the best explained I found so far on the net!!!
@mohamadalibrahim2995
@mohamadalibrahim2995 7 жыл бұрын
Du hast Recht, seine tutorials Sehr gut
@mishaelmeshach9180
@mishaelmeshach9180 11 жыл бұрын
Perfect. All of your tutorials, just perfect! Thank you, sir!
@dawidczarnecki7456
@dawidczarnecki7456 8 жыл бұрын
i had a little bit problem with understanding this lesson, so i had to check your code samples. I didnt expect what amazing job u did there. I am your fan!
@karthikr3970
@karthikr3970 11 жыл бұрын
Karthik R 5 minutes ago Hi Venkat Sir I have watched your all Videos . All Videos are unbeatable video. In my career no one can explain these method. Every day I have been checked your blogs. Please keep on post MVC video and Expect WCF. Thank Yooooooooooooou Very Much You are very Brilliants and Quickly Capture User Problem. I have lot of doubt in coding but after saw your video every thing have been fined
@golansoffer6538
@golansoffer6538 7 жыл бұрын
your amazing!! your explaining those things better then my teachers!!
@hoaleang8437
@hoaleang8437 11 жыл бұрын
perfect tutorial I have ever seen on youtube, Thanks so much!!!
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 11 жыл бұрын
We will have to create a view specific model, that contains the properties from both the tables. If this is not clear, I will record and upload a video on this very soon.
@nooriasaleem2758
@nooriasaleem2758 4 жыл бұрын
Sir, please provide link Because I didn't understand the DBset r DB context or my controller couldn't access the EmployeeContext Model class
@MrsLAki91
@MrsLAki91 9 жыл бұрын
I simply love you...thank you so much ! :) great tutorials
@fabrizioiacovone2661
@fabrizioiacovone2661 9 жыл бұрын
If it can be helpful...for those who had problems.. (invalid Column name) To make it work I had to spend a lot of time .. to understand that I needed to add the attribute [Key] on both of the class Id's and beside that add an attribute [NotMapped] on the property Employees in Departments since it doesnt appear in the schema.. Nice course I love it
@BasiliskSupreme
@BasiliskSupreme 9 жыл бұрын
+Fabrizio Iacovone Thank you. I was breaking my head on the same issue
@basharawwad5451
@basharawwad5451 6 жыл бұрын
Thank you So Much
@sunpreetsingh5143
@sunpreetsingh5143 5 жыл бұрын
thank you so much ...u saved my time . :)
@JaswantSingh-go8ey
@JaswantSingh-go8ey 5 жыл бұрын
Sir, You are God for poor Student. Thank you so much sir
@dhliu9687
@dhliu9687 2 жыл бұрын
THANK YOU sir !! you are good teacher : ) it is really helpful
@JaswantSingh-tz9bq
@JaswantSingh-tz9bq 4 жыл бұрын
One of the powerful concept Thank u sir
@jasonvega3987
@jasonvega3987 10 жыл бұрын
Thank for sharing your knowledge , Great Job , I hope you continue doing more tutorials.
@vladimirstrukelj6587
@vladimirstrukelj6587 8 жыл бұрын
I owe you several of my coursegrades, thank you :)
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 8 жыл бұрын
+vladimir Strukelj Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful. Dot Net & SQL Server training videos for web developers kzbin.infoplaylists?view=1&sort=dd You can order DVDs for offline viewing using the link below www.pragimtech.com/Order.aspx Code Samples & Slides are on my blog csharp-video-tutorials.blogspot.com Tips to effectively use our channel kzbin.info/www/bejne/r2ibYYCtnb5qZtU To receive email alerts, when new videos are uploaded, please subscribe to our channel kzbin.info Please click that THUMBS UP button below the video, if you like the videos Thanks a million for sharing these resources with your friends Best Venkat
@foyejurrahman4331
@foyejurrahman4331 7 жыл бұрын
It's awesome. I am just learning stage. It's pretty helpful for me.
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 11 жыл бұрын
Sure, will do it as soon as I can.
@dsingh3205
@dsingh3205 11 жыл бұрын
Thank you sir for uploading 10th part of MVC. have a great day.
@vaibhavtrikolikar4902
@vaibhavtrikolikar4902 11 ай бұрын
Thank you sir for another Great Tutorial
@narendramuppa
@narendramuppa 9 жыл бұрын
Awesome Video. Thanks a Lot Venkat
@irinamurmur
@irinamurmur 8 жыл бұрын
Thank you so much for this course, it's great!
@smtaha9571
@smtaha9571 3 жыл бұрын
No the tutorial is not wastage for me. I used old method os SqlConnection and SqlCommand for my work. Thanks Sir to teaching me this before.
@guruprasady5362
@guruprasady5362 9 жыл бұрын
It was really nice. Thank you.
@Boudak_17
@Boudak_17 10 жыл бұрын
what an Excellent Job!!
@arushraj
@arushraj 10 жыл бұрын
Thanku,,,thanku thanku.. sir sooo much.....
@sivanesansethuraman7400
@sivanesansethuraman7400 8 жыл бұрын
Hi Venkat, the video is very nicely articulated. I had two questions, could you please clarify me. 1. Why don't we have DepartmentContext separately to access departments ? or Why did we add both employee and department in single context ? 2. I see the employees properties in the department Model class is not used in this session ?
@francisgonsalves4672
@francisgonsalves4672 5 жыл бұрын
Awesome Tutorial Sir.
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 11 жыл бұрын
Hi Ipsita, we will discuss this in our future videos.
@rahimbakashk1442
@rahimbakashk1442 8 жыл бұрын
wow .....Amazing Tutorials...
@santoshkumarkotha1975
@santoshkumarkotha1975 10 жыл бұрын
excellent videos.................... thank you
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 11 жыл бұрын
Hi Ravi, we will discuss this in our future videos.
@TheBoozeFairy
@TheBoozeFairy 7 жыл бұрын
Great set of tutorials
@souleyeba5036
@souleyeba5036 8 жыл бұрын
Thanks a lot !!! Good tutorial !!
@wisnu7734
@wisnu7734 6 жыл бұрын
good question
@helenayschoi2710
@helenayschoi2710 10 жыл бұрын
On Visual Studio 2013, this tutorial gave me an error that no key defined on Department. I figured it out by adding two lines on Departments.cs using System.ComponentModel.DataAnnotations; [Key] public int DepartmentId { get; set; } Thank you Kudvenkat!! Your tutorials are really helpful and easy to follow!! :)
@MohamedEltiganiElnour
@MohamedEltiganiElnour Жыл бұрын
👍 great.
@Abc10802
@Abc10802 11 жыл бұрын
Thank you venkat sir, it's nice... plz upload wcf video...
@hlzhang346
@hlzhang346 7 жыл бұрын
thank you, it is very useful.
@herbertrodriguez3717
@herbertrodriguez3717 7 жыл бұрын
Thank you Sir !🚶🌄
@shanmugadasskalidass6285
@shanmugadasskalidass6285 8 жыл бұрын
Good work! Thanks.
@thanhfighter0511
@thanhfighter0511 9 жыл бұрын
Thank you so much :))
@sca11ywagg
@sca11ywagg 5 жыл бұрын
Do you talk anywhere in one of the other tutorials about why one method sends a List and the other recieves an IEnumerable. I hope so because it is a good - and very deliberate - construct.
@218manish
@218manish 10 жыл бұрын
Good job Venkat
@shrutisoni3108
@shrutisoni3108 8 жыл бұрын
thank u..for sharing this videos..
@recepkarayigit8373
@recepkarayigit8373 5 жыл бұрын
I have a question, I did everythin is same except, I create a separate DepartmentContext.cs under the Model folder and of course I rearrange the code of DepartmentController as public ActionResult Index() { DepartmentContext dpc = new DepartmentContext (); List dp = dpc.Departments.ToList(); return View(dp); } I don't get any error when I execute the program, but I can't see the department either. But the way pragim's shows as use "public DbSet Departments { get; set; }" into EmployeeContext works. What am i missing? Thanks for interest and your time in advance
@obadiahwilliams1393
@obadiahwilliams1393 10 жыл бұрын
thanks for the tutorials!
@karlladavis2213
@karlladavis2213 4 жыл бұрын
Amazing!
@semikolon4229
@semikolon4229 7 жыл бұрын
Very Helpful.
@MaheshKumar-th7ji
@MaheshKumar-th7ji Жыл бұрын
Hi, It's not required to add *"public List Employees { get; set; }"* property in Department model class even without this property the application works fine without issue 💯
@panther208
@panther208 7 жыл бұрын
Thank You so much good Tutorial
@kenmtb
@kenmtb 9 жыл бұрын
Great tutorial. One thought: Why did he create and use an employee context in the DEPARTMENT controller?? To get the initial list of departments, wouldnt you use a department context that also has a list of employees and use that in the department controller???
@shabit
@shabit 11 жыл бұрын
@ Priya Bhatia..Hi I went through the same issue..like Invalid column name Department_DeptId ..first I tried to create foreign key constraint ,then i seperated departmentcontext from employeecontext model and created another model for department context.Now its working fine...Hope this will help solve ur problem too.
@ukaszwesoowski2186
@ukaszwesoowski2186 10 жыл бұрын
Thank you, sir. It's working.
@casper6060
@casper6060 10 жыл бұрын
Thanks that helped me :) so annoying that because i am running with VS 2012 and Venkat is running with 2010 i think that things are different in small ways like this, but without these videos i would be 100% lost so my greatist respect to Venkat for making these godly tutorials!
@CalibrationExtreme
@CalibrationExtreme 11 жыл бұрын
Great stuff! I'm unclear on one minor detail and it's something MVC is doing... the URL being generated for the DEPARTMENTS list have a parameter at end to get to the EMPLOYEE list as something like "?departmentID=3", but when you get to the EMPLOYEE list, the parameter to get to the DETAILS uses just a slash as in "/4". Why does one "html.actionlink" generate links with the question mark + parameter name and the other "html.actionlink" generate only with slashes?
@JitendraSingh90
@JitendraSingh90 5 жыл бұрын
Hi Venkat, I am doing the same thing but getting one error "Invalid column name 'Department_Id'. " on line List employees = employeeContext.Employees.Where(emp => emp.DepartmentId == departmentId).ToList(); I have checked there is no column named as Department_Id in code side and database side as well. Could you please help me in this. Below is SQL Profiler Trace: exec sp_executesql N'SELECT 1 AS [C1], [Extent1].[EmployeeID] AS [EmployeeID], [Extent1].[Name] AS [Name], [Extent1].[Gender] AS [Gender], [Extent1].[City] AS [City], [Extent1].[Department_Id] AS [Department_Id], [Extent1].[DepartmentId] AS [DepartmentId] FROM [dbo].[tblEmployee] AS [Extent1] WHERE [Extent1].[DepartmentId] = @p__linq__0',N'@p__linq__0 decimal(1,0)',@p__linq__0=1
@muhammadhassan3058
@muhammadhassan3058 4 жыл бұрын
Thanks 😊 sir
@praganeshpatel9368
@praganeshpatel9368 9 жыл бұрын
Thank you for your your great introduction to the .net technology, but i would say that you should update your videos regarding new updated version of VS2013 thank you
@nasarazam
@nasarazam 9 жыл бұрын
Praganesh Patel Thanks him for all the free videos instead of asking for more. You do realize that it take an awful lot of work and effort.
@divewithshubham
@divewithshubham 8 жыл бұрын
sir In mvc4. line: public list departments { get; set; } In department model is creating an error.. removing the same works perfect. Is there any reason of putting that line there?
@raghavendrajha5310
@raghavendrajha5310 8 жыл бұрын
@kudvenkat: Please explain this.Thanks
@ACLAproductions
@ACLAproductions 8 жыл бұрын
I was also getting an error and removing that line solved it. Anyone has found an answer yet?
@loyalcitizen8713
@loyalcitizen8713 8 жыл бұрын
try this, public List ListOfEmployees = new List();
@1234mohitmhatre
@1234mohitmhatre 7 жыл бұрын
It worked thank you so much Bro
@amland3878
@amland3878 7 жыл бұрын
Nice learning thanks, a little back-tracking/trouble shooting/reverse eng type of learning... kind of 'lets do this-not working-why-because we missed that-still not working-why-we missed that too'... a not-beginner may remain confused until the exact steps are revealed at the end... finally feels like if I could play the entire video in reverse direction just to sum up the basic idea.... still good for me, thanks
@tornikeonoprishvili6361
@tornikeonoprishvili6361 9 жыл бұрын
gr8 vid m8. tnx
@mahmoudadel9799
@mahmoudadel9799 7 жыл бұрын
Thank you so much
@amjadaslam5270
@amjadaslam5270 7 жыл бұрын
sir i love your all video. some time i need extra help
@Cranberry1669
@Cranberry1669 7 жыл бұрын
Hi Venkt, Question: Do you have a similar video where backend is simply an XML file but not a SQL server database? I will be working on a UI where there is no database involved. the Data will be pulled from an XML file. Or Do you have any other suggestions? Thank you
@mabdallah57
@mabdallah57 10 жыл бұрын
thank you for all sharing
@abubakarizhar5608
@abubakarizhar5608 3 жыл бұрын
Very well described . Can you please tell me , should the new route parameter in ActionLink match the input parameter in Controller method for which ActionLink is called. e.g departmentId parameter.
@Funkyoo4
@Funkyoo4 6 жыл бұрын
So what's the use of forenkey in between this two table
@iamsk6353
@iamsk6353 9 жыл бұрын
in which order we can watch the video play lists... so that we can be able to develop a web application using ASP.NET MVC???? Plz tell me sir.... Thank u in advance
@jcrtec
@jcrtec 9 жыл бұрын
+sudhakar badiger Start in video Part one.
@belearnt3902
@belearnt3902 7 жыл бұрын
is this using entity framework? or simple mvc ?
@bwboy668
@bwboy668 11 жыл бұрын
You added a list of employees in the department class but I don't know how you used this list. Can you please clarify it?
@jrao77
@jrao77 11 жыл бұрын
Hello, I have one question. Using this method how can we show Data from two tables in one view. For example if we want to show Department Name on employee Details Page how it will be possible
@nghuwei
@nghuwei 6 жыл бұрын
Hi. Can I do this tutorial on .net core? There is not much tutorials from kudvenkat on asp.net core mvc so I will use this as reference.Please advise
@miltonsibanda4540
@miltonsibanda4540 10 жыл бұрын
this is fab, is it possible to do something similar with the create page? so from the department list page if i click create new employee it fills the department field automatically?
@sayalichopade1270
@sayalichopade1270 7 жыл бұрын
Why do we need to use @using and @modal both for accessing modal properties? is there a difference in them
@michaelsipayung
@michaelsipayung 7 жыл бұрын
hello bro .if u getting error checking your table data , u must have 4 field in tblEmployee(EmployeeId,Name,Gender,City,DepartmentId).
@priyabhatia1165
@priyabhatia1165 11 жыл бұрын
I got stuck in a problem while working with multiple tables in mvc. In my project sample, I created two tables Employee and Department but when I pass dept id to employee controller in index, I am getting sql exception "Invalid column name Department_DeptId". When I debug my code I saw EmployeeContext schema is creating one more column in Employee class named as Department_DeptId. I dont know from where it is coming. Please suggest. Your help will be appreciated. Thanks in advance
@prashantmanandhar2440
@prashantmanandhar2440 10 жыл бұрын
really great!!! how to do the same thing in asp.net webform?
@gulshansinghmetharu
@gulshansinghmetharu 7 жыл бұрын
The resource cannot be found. When I go to department/index page. Please help.
@ZappFoot
@ZappFoot 6 жыл бұрын
thank you
@ronald070687
@ronald070687 6 жыл бұрын
Hi, can you help me? i am having an "Invalid column name 'Department_ID' error when running the project.
@rahultambekar6110
@rahultambekar6110 5 жыл бұрын
the same problem i have facing?
@nikhileshr4446
@nikhileshr4446 4 жыл бұрын
Rahul Tambekar u need to modify the employee model. add a new column departmentid. pls see the table structure in the first part of the video.
@pranaypandu9268
@pranaypandu9268 4 жыл бұрын
@@nikhileshr4446 even it is getting
@samathaknr5462
@samathaknr5462 7 жыл бұрын
Even if we are not declaring Employee class under the Department class also its working. [Table("tblDepartment")] public class Department { public int Id { get; set; } public string Name { get; set; } //public List Employees { get; set; } } What is the use of declaring this Employee class under Department class ??
@heemelhimaddri534
@heemelhimaddri534 5 жыл бұрын
Sir, Recently i started to watch this MVC series but unfortunately in part 10 I'm facing some exception problems and it occurs in Department Controller. Here below I've provided this line List departments = employeeContext.Departments.ToList(); which throw An exception of type 'System.Data.Entity.ModelConfiguration.ModelValidationException' occurred in EntityFramework.dll but was not handled in user code Additional information: One or more validation errors were detected during model generation: I've tried so many time but i couldn't fix this problem, so please help me to handle this exception. Thank you
@nitesh.kumarsaw
@nitesh.kumarsaw 4 жыл бұрын
From where departmentid is coming in Employee modal. as I saw the tblEmployee , there were no property called departmentId. Could you please explain?
@KaushikPoojari
@KaushikPoojari 4 жыл бұрын
You will have to create a new table of Department (Id, Name) and Add a new Column in Employee Table with the name of DepartmentId(which would be Foreign Key) and linked to ID of Department Table
@jrao77
@jrao77 11 жыл бұрын
Hi, Thank you very much for your reply. I have done that but it does not work. It will be great if you can upload a video or post a simple code to your blog giving Department name along with employees.. Thanks again
@bravitejas
@bravitejas 11 жыл бұрын
thankyou sir and How to implement dropdownlist in mvc
@MrJose1196
@MrJose1196 7 жыл бұрын
What is the purpose of the DbContext?
@imyounick
@imyounick 8 жыл бұрын
Why we have to create different view for each method ? is there any way we can use one view with multiple methods ?
@kalyanidotnet5905
@kalyanidotnet5905 11 жыл бұрын
hi venkat sir one small request from my side i want to devlop a mvc application there wcf is acting as a bussiness logic tier and ui will be mvc plz give us a vedio with mvc ui and wcf as bussiness login tier and jquery for validation plz sir.......................
@qimingcheng7306
@qimingcheng7306 7 жыл бұрын
What is the use of List Employees property in Department Model Class?
@nitinvmahajan2006
@nitinvmahajan2006 10 жыл бұрын
Hi, Where can i get copy or script for Sample DB database that you are using in the tutorial.
@abdomohmed2038
@abdomohmed2038 7 жыл бұрын
but is this a good practise to show the the id of the department in the get request ?
@rezataba6204
@rezataba6204 6 жыл бұрын
*Solution for these issues:* *1- Invalid column name Department_DeptId* *2- Invalid Key* *3- Entity issues* Using [Key] or Foreign Key didn't work. *1-* Change your EmployeeContext file to something more general. For example: *ProjectContext* *2-* Now In *ProjectContext* file create two classes which contain your EmployeeContext and DepartmentContext as below: using System.Data.Entity; namespace MVCDemo.Models { public class EmployeeContext : DbContext { public DbSet EmployeesContextTbl { get; set; } } public class DepartmentContext : DbContext { public DbSet DepartmentContextTbl { get; set; } } } *3-* Modify your Web.config file. *4-* Modify Global.asax file: Database.SetInitializer(null); Database.SetInitializer(null); *5-* Now you can use your connections for EmployeeContext and DepartmentContext separately. I read somewhere since Vinket was using Visual Studio 2010 there was no issue. However, it seems this issue started with the newer versions. Good luck. Reza
@sefatanam
@sefatanam 5 жыл бұрын
:)
@SHIVAML987
@SHIVAML987 4 жыл бұрын
Thanks. God bless you :)
@shaikhshaji
@shaikhshaji 2 жыл бұрын
Thank you very much, it really helped me.
@shailendraphadke5557
@shailendraphadke5557 11 жыл бұрын
Before creating Depaertment, Model my it was working very fine. But as soon I have written for Department I am getting this error : One or more validation errors were detected during model generation: \tSystem.Data.Entity.Edm.EdmEn­tityType: : EntityType 'Departments' has no key defined. Define the key for this EntityType. \tSystem.Data.Entity.Edm.EdmEn­titySet: EntityType: EntitySet 'department' is based on type 'Departments' that has no keys defined
@Algebrodadio
@Algebrodadio 9 жыл бұрын
Is it necessary to have a separate file for each model class? Since the classes "Department", "Employee" and "EmployeeContext" are all in the "MVCDemo.Models" namespace, couldn't you put all three classes into the same file? Why wouldn't you do that?
@RyanFaeScotland
@RyanFaeScotland 9 жыл бұрын
Aaron Wolbach Haven't watched any of the videos in this series yet so not sure what these classes are like but a general reason is simplicity and readability of the code. You may think 1 class is easier to manage but someone who doesn't know your code who is asked to make a change to the Department class is going to struggle to find it if it isn't in its own file. IDE's make life a lot easier so this is less of a problem but you should still aim to have things so clear that they could be read in notepad / Windows Explorer in a pinch! After all, you could put ALL your code in one file but you wouldn't, would you? (O.o)
@bradleyr4451
@bradleyr4451 9 жыл бұрын
+Aaron Wolbach It works out much better if you dont make one big file. I created a large, "flat" table with 300 columns, all in one big model class. And now after months, I have to rework the entire project and split the table into probably 10 tables and redo everything. there is a limit of 8060 bytes you can load into sql server per row, not very much. Find out things like this after the fact. Thought it could store 1Mb or 2Mb+ pdf documents along with other data? 8060 bytes is a barrier that can cause your system to fail when users try to store or update data. There are classic methods of how to split your database, group by function and by access, etc and it works better (doesnt crash) and should run faster. but you can put this all into one
@matheshwaran602
@matheshwaran602 6 жыл бұрын
nice , but what is the use of = public List[Employee] Employees { get; set; } ? without this also i can run the same output
@Mousesenpai
@Mousesenpai 5 жыл бұрын
List is a class which holds data in list form, u better understand the basic of c# in order to jump in the mvc
@buskilamaor9587
@buskilamaor9587 7 жыл бұрын
It works fine on the local machine but how do i make it work after publishing to IIS? there has to be a change in the connectionString.....any help?
@shashikiran5388
@shashikiran5388 11 жыл бұрын
When we implemented action link from EmpList to Emp Details URL is with slashes. But when implemented action link from Departments list to Employee list why is that with question mark(querystring)
@shashikiran5388
@shashikiran5388 11 жыл бұрын
may be because travelling to other controller with a parameter to pass on
@LalitJindalLonelyStar
@LalitJindalLonelyStar 7 жыл бұрын
how i define foreign key in emp table... please rply
@AvezMohamad
@AvezMohamad 7 жыл бұрын
Alter table tblEmployee add foreign key (DepartmentId) references tblDepartment(Id)
@ipsitapani8641
@ipsitapani8641 11 жыл бұрын
ok.THANK U SIR.
@meghamisra5622
@meghamisra5622 7 жыл бұрын
How can I use join query in the model to show data on view?
@justinsheroz3249
@justinsheroz3249 8 жыл бұрын
sir i have a error of unhandled exception how i solve this.... Server Error in '/MvcDome' Application. The parameters dictionary contains a null entry for parameter 'departmentId' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Index(Int32)' in 'MvcDome.Controllers.EmployeeController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. Parameter name: parameters Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: The parameters dictionary contains a null entry for parameter 'departmentId' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Index(Int32)' in 'MvcDome.Controllers.EmployeeController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. Parameter name: parameters Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
@secretlives2734
@secretlives2734 8 жыл бұрын
justin sheroz did u solve it...mine also same error..if u solved plz reply
@mikheilshalvashvili2605
@mikheilshalvashvili2605 8 жыл бұрын
Justin I have the same problem
@nagihanozcelik5290
@nagihanozcelik5290 8 жыл бұрын
Did u solve the problem?
@mikheilshalvashvili2605
@mikheilshalvashvili2605 8 жыл бұрын
I reslove it bro
@justinsheroz3249
@justinsheroz3249 8 жыл бұрын
how
Part 11  Using business objects as model in mvc
16:21
kudvenkat
Рет қаралды 469 М.
Part 8  Data access in mvc using entity framework
13:29
kudvenkat
Рет қаралды 948 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Using Multiple EF Core DbContexts in a Single Application
17:46
Milan Jovanović
Рет қаралды 38 М.
Part 12  Creating a view to insert data using mvc
10:40
kudvenkat
Рет қаралды 459 М.
MVC Explained in 4 Minutes
4:13
Web Dev Simplified
Рет қаралды 1 МЛН
Part 16  Difference between updatemodel and tryupdatemodel
14:51
kudvenkat
Рет қаралды 237 М.
List T and Collections of Data [Pt 12]  | C# for Beginners
12:08
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 64 М.
Part 7  Models in an mvc application
11:15
kudvenkat
Рет қаралды 706 М.
How To Call Stored Procedure In ASP.NET MVC Using Entity Framework
30:03
Digital TechJoint
Рет қаралды 15 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН