Hello Sir! I've been with other tutorials and so far your video is the best. COMPLETE and CONCISE! Please continue working you are helping a lot of people around the world. Thank you so much!
Need small clarification. Are you working with database first approach? Bit confused after watched some other videos with a concept of code first and database first approach
Unable to update the EntitySet 'User' because it has a DefiningQuery and no element exists in the element to support the current operation. 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.Data.Entity.Core.UpdateException: Unable to update the EntitySet 'User' because it has a DefiningQuery and no element exists in the element to support the current operation. how can i fix it ?? pls reply me
hey, in MVC, InternetApplication, there is a built in AccountController for login registration, Is there a way that we can mold it to save record into our SQLServer Datebase ?
no, you can implement email verification like this : 1. Send mail to the user with a link containing encrypted code, eg. format : http/www.example.com/EmailVerification.?code={generatedcode} 2. keep a database record for the user with this code - there should be column isVerified (Initially it will be false) 3. When user click on the link, find user record with given generated code and mark the record as verified. [ generated code should not repeat ]
System.InvalidOperationException: 'The entity type User is not part of the model for the current context.' i get this error when i click on the submit button
I was also getting the same error and I believe its the same one and the solution is we need to create an object of ADO.Net entity, not the model name.
I have one problem DbModel.TBL_UYEs.Add((userModel)); this block is creating problem DbModel.SaveChanges(); Error: Severity Code Description Project File Line Suppression State Error CS1503 Argument 1: cannot convert from 'OdevProject.Models.Sınıflar.kayıt' to 'OdevProject.Models.EntityFramework.TBL_UYE' OdevProject C:\Users\Cihat\source epos\OdevProject\OdevProject\Controllers\UyeController.cs 84 Active
I have this problem about the reference or assembly reference in DbModel. in [httppost] section. There's a red line under DbModel in DbModel dbModel= new DbModel line . what do you think is the problem ? thanks in advance.
I had fixed this problem :) I just missed one step. I didn't change the name of the entity into DbModels. Thanks a lot sir :) by the way, is it possible to create add to cart button in mvc website ? we're making a school project that enable users to buy furniture. Hope to get a reply :) Thanks again.
here is an example for multiple table insertion from EF. stackoverflow.com/questions/18142456/how-to-insert-data-into-two-tables-at-a-time-using-entity-framework
help The model item passed into the dictionary is of type 'project.Controllers.UserController', but this dictionary requires a model item of type 'project.Models.Student'.
dbModel.SaveChanges(); issi step me ye error dikharahahe. ( An exception of type 'System.Data.Entity.Validation.DbEntityValidationException' occurred in EntityFramework.dll but was not handled in user code)
i did same like this. but getting error ..Invalid column name 'ConfirmPassword'...how to fix this error, can u help me? savechanges() method, it is considering ConfirmPassword also a table column.
isAdmin is an indication to show whether the use is admin or not, it is often stored in user details table to assign special permission for admin users. in the project it does not make any difference. it is up to you to add admin roles in the project.
System.Data.Entity.Validation.DbEntityValidationException: 'Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. Who can help me know what is not. thank you
goo.gl/bPcyXW : Buy me a Coffee
bit.ly/403lUVC : Same Topoic But Latest Version
bit.ly/36IA1cH : AspNet Core MVC CRUD Operations
bit.ly/3Pn2S7y : Expense Tracker App in AspNet Core MVC
bit.ly/2yEPlpB : Convert MVC App to Single Page(jQuery Ajax)
bit.ly/39B6xdh : Image Upload in AspNet Core MVC
bit.ly/30fPDMg : More MVC Tutorials
It's good. Can you make the page where details of user will showing in another Page after registration is successful?
Nice... Can you also add a dashboard after successful login, where some of the details will display.. thanks
@@muelveroctavio4666 hey hi if you have the code for this video and also the changes which you have suggested can you send me please
Thanks for taking the time to create all your videos. Very much appreciate it.
Hello Sir! I've been with other tutorials and so far your video is the best. COMPLETE and CONCISE! Please continue working you are helping a lot of people around the world. Thank you so much!
thanks for your love and support.
Larned a lot from you Sir. Please do more videos. Thank you so much!
@@CodAffection
Thank you for the explanation and for the excellent and useful lesson. I hope you can do this form using php + sql
Hi, I have a question, at 12:51, you typed "Users" while there is no such thing related to the codings. I dont get it. Can you please explain to me.
Same issue here, pls help
Thank You. Great explanation.
Thanks sir your video tutorial helps me a lot Thank you so much
Thanks a lot. Keep on this amazing job!!! Nice to be here!!!
2:07 im using new version of visual studio . in my case generate from database i not available tell me what to do.?
same here
Great tutorial! Really Helpful 👏
Helpful! Is view model in Actions is implemented? Can you tell me how ?
You just saved my life
Nice Tutorial. You should have included Email and sending code for email verification.
Very well explained👍
Thank you 🙂
Need small clarification. Are you working with database first approach? Bit confused after watched some other videos with a concept of code first and database first approach
Sir very good tutorial. I have a question: when I run it says: error en el servidor de la aplicación '/'. Resource ca not be found
Your video is the best, Thank you so much. Good luck
Glad you found the video helpful. and thanks for the support.
Great tutorial, it's so useful and clear.
In real world:
Never save passwords in plain text
Thank you so much sir😊🤗
Hey man, do you know why I can see the UserID on the webpage when I run it after creating the usercontroller?
Good job.
Please can you upload the script folder you used in this project?
Unable to update the EntitySet 'User' because it has a DefiningQuery and no element exists in the element to support the current operation.
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.Data.Entity.Core.UpdateException: Unable to update the EntitySet 'User' because it has a DefiningQuery and no element exists in the element to support the current operation.
how can i fix it ?? pls reply me
I like your tutorials
clarify the doubt from where u get Dbmodel() in the code
ADO.Net Entity Data Model missing, even after installing Framework SDK 6 and after choosing the .Net Framework instead of .Net Core. Please help
i'm having error where my models name can't be found when i follow step at 12:40
please help, i'm new to .Net
it is the name of db context class which we have given during EF Model creation.
@@CodAffection Hii..I am still unable to find that models name..Can u plz help me in that. I need to solve this error asap.
if our database have a lot of table and the table are connected with foreign key how can ı do it?
sir i for got the connection name saved as entity of the data base. how can i get that?
hey, in MVC, InternetApplication, there is a built in AccountController for login registration, Is there a way that we can mold it to save record into our SQLServer Datebase ?
Thank you so much! Works perfectly :)
glad you found the video helpful.
Thanku sir for this
Another great series. I was looking for the email verification method. Do you have any suggested links?
no,
you can implement email verification like this :
1. Send mail to the user with a link containing encrypted code,
eg. format : http/www.example.com/EmailVerification.?code={generatedcode}
2. keep a database record for the user with this code - there should be column isVerified (Initially it will be false)
3. When user click on the link, find user record with given generated code and mark the record as verified.
[ generated code should not repeat ]
WHAT IS THE PROBLEM E-MAIL VERIFICATION YOU JUST EDIT PASSWORD TO EMAILADDRESS THAT'S IT
Brother how to merge a login and registration?
System.InvalidOperationException: 'The entity type User is not part of the model for the current context.'
i get this error when i click on the submit button
Getting error at db.savechanges() on registration controller
Thanks, its help me a lot.
Glad you found the video helpful.
hi, thanks for the video. may I know how to add dropdown data ?
Hi sir... Not getting fields from local db while creating view.... What is the problem in that sir...
Thanks but getting an error..sqlexception: cannot insert explicit value for identity column in table 'user' when identity_insert is set to off.
sir, i have one error => (DbModels dbModel =new DbModels()) that is given error plz give me soln.
I was also getting the same error and I believe its the same one and the solution is we need to create an object of ADO.Net entity, not the model name.
@@yasarkhan4735 can you give me the desmonstration video link if you have any
Please, where you able to get the solution for the (DbModels dbModel =new DbModels()) problem?. Very urgent please, thank you.
I have one problem
DbModel.TBL_UYEs.Add((userModel));
this block is creating problem
DbModel.SaveChanges();
Error:
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 1: cannot convert from 'OdevProject.Models.Sınıflar.kayıt' to 'OdevProject.Models.EntityFramework.TBL_UYE' OdevProject C:\Users\Cihat\source
epos\OdevProject\OdevProject\Controllers\UyeController.cs 84 Active
I have this problem about the reference or assembly reference in DbModel. in [httppost] section. There's a red line under DbModel in DbModel dbModel= new DbModel line .
what do you think is the problem ? thanks in advance.
+Jefferson Salvador import model namespace
I had fixed this problem :) I just missed one step. I didn't change the name of the entity into DbModels. Thanks a lot sir :) by the way, is it possible to create add to cart button in mvc website ? we're making a school project that enable users to buy furniture. Hope to get a reply :) Thanks again.
@@jeffersonsalvador6893 how did you solve this error?
Sir I am gating an error in save change(); plz reply
I am facing an error while running an application can you please assist me with that?
bro in my template the checkbox is not show why?
IsAdmin
In Sqlserver make data type of IsAdmin as bit.
Is it possible to insert into more than one table without using stored procedure in mvc, i am a beginner. I am hoping to get a reply
here is an example for multiple table insertion from EF. stackoverflow.com/questions/18142456/how-to-insert-data-into-two-tables-at-a-time-using-entity-framework
Yes you can insert , just create another table and model and then make an object of model then same process you can insert data in multiple table.
Not able to add multiple rows ... please help
I get an exception like this 'System.Data.Entity.Infrastructure.DbUpdateException'
on dbModel.SaveChanges() line.
Please help.
The value returned for the UserID = 0, I think the mistake could be here. Does not it have to start 1?
Set UserID Column as IdentityColumn ?
help
The model item passed into the dictionary is of type 'project.Controllers.UserController', but this dictionary requires a model item of type 'project.Models.Student'.
in my system appdb is not visible.
Nice bro :)
Very good video
dbModel.SaveChanges(); issi step me ye error dikharahahe. ( An exception of type 'System.Data.Entity.Validation.DbEntityValidationException' occurred in EntityFramework.dll but was not handled in user code)
U are using migration, then update database, otherwise write code in global. Asax
6:46 in comments they said-> MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN!!!!!!!!!!!!!!!!!
you mean DisplayName Attribute ?
why does MS make so dang difficult to relate another table/model to the Identity framework models.
any one tell me plx dmodel why not working in my program ?
i did same like this. but getting error ..Invalid column name 'ConfirmPassword'...how to fix this error, can u help me?
savechanges() method, it is considering ConfirmPassword also a table column.
please download the demo project and compare with your project.
yes.i tried that one also.but its not working.
can you please provide your mail ID..?
how Isadmin =1 when data insert?
Whats the difference for IsAdmin or not?
isAdmin is an indication to show whether the use is admin or not, it is often stored in user details table to assign special permission for admin users. in the project it does not make any difference. it is up to you to add admin roles in the project.
Dotnet Mob Yeah that's what i was thinking too can you provide a video with admin permissions and everything?
Thanks bro
Very good
Im Missing User.cs when im creating model can you please help me to fix it please.
Dear select the table then click next then user user.cs will added if you are not selected you definitely miss user.cs
it is necessary to add if you forget the password !how to get the password using code to send on the telephone .
You may need to SMS API to send verification code from C# application
but you have not added the code when the password is forgotten.It is necessary to add for me as I need .Please
thanks for your video suggestion, I will include that in upcoming asp.net mvc tutorial
System.Data.Entity.Validation.DbEntityValidationException: 'Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. Who can help me know what is not. thank you
Even i am getting the same error..
fantastic
very good.
I have an error in [DisplayName]
I hope you added the using System.ComponentModel.DataAnnotations.
Sir can use show us how to hash the password?
SUBSCRIBED :)
Do you know what you are teaching? or how to proceed step by step?
can u give the source code of this project.
project source code without db script: goo.gl/R79zcj
thanks
cool!
thanks
for 2023 its a waste video.
Very nice
thanks