Тёмный

Part 6 How to seed database with test data using entity framework 

kudvenkat
Подписаться 834 тыс.
Просмотров 141 тыс.
50% 1

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@bytesizedpieces
@bytesizedpieces 7 лет назад
Thank you Thank you Thank you!! I've watched almost all the series you have offered and you are very clear and concise! This by far is more informative than any other EF resource I have found thus far.
@gokulsukumar1699
@gokulsukumar1699 10 лет назад
Thank you very much Sir. Currently I'm working on a Silverlight application which utilizes MongoDB. Most companies however preferably use SqlServer and EntityFramework becomes a value added knowledge when it comes to interviews. Appreciate you taking time for the knowledge transfer.
@debarghyachakraborty
@debarghyachakraborty 3 года назад
If your code doesn't work, it's because here seeder class is inheriting from 'DropCreateDatabaseIfModelChanges', so if you don't change your entity class each time in any form e.g. adding new property like 'JobTitle', it won't recreate the database. So to solve the problem you can make seeder class inherit from 'DropCreateDatabaseAlways' instead.
@mohamedkunle528
@mohamedkunle528 3 года назад
thank you man i almost crash the laptop thanks lil venkat
@rajeevjha3714
@rajeevjha3714 Месяц назад
Do you mean if any model changes example adding/removing properties then each time deleting and recreating the tables Is this problem resolve by DropCreateDatabaseAlways
@AchuthaKrishnan
@AchuthaKrishnan 10 лет назад
Thanks for the videos Venkat.
@melkamuademe1907
@melkamuademe1907 5 лет назад
thank you very much for this series! and other Tutorials!!!!!!!!!!!!!!
@jumbo999614
@jumbo999614 7 лет назад
I followed your instruction and it worked great. but i have questions. How about creating Department and Employee separately? (your example creates both at the same time)
@yisauramon5775
@yisauramon5775 10 лет назад
Hi Venkat, there's no doubt about all your video uploads they're absolutely excellent.Pls can you help to upload a C# FileSystem or Directory watcher and another one on how to publish an application.I started learning programming with your videos and i must say a big thumbs up! Thanks
@ramchandrathakkar2022
@ramchandrathakkar2022 10 лет назад
Thank you very for starting another great series. Before starting Entity framework i googled and found some limitation in it. If possible i would like to request you to record one video of entity framework pros and cons.
@robertanic7799
@robertanic7799 8 лет назад
+RAMCHANDRA THAKKAR I think in version 6.1 you can add columns which are new in database using Migrations. I am beginner, so dont know as expert, but I watched one video about it. I dont know if kudvenkat has cover it in this tutorial, maybe it wasnt available with previous entity.
@aliajdadi1873
@aliajdadi1873 5 лет назад
hei guys, the code works, you should just first comment the public List GetDepartments() method, otherwise you get an error, first when the database dropped and created then you can call the Method and you can add many property as you want and many BoundField as you want, but dont forget the code below has some failure it uses [ ] instead < >
@deepro__
@deepro__ Год назад
Thank you very much, sir.
@stutitehri993
@stutitehri993 10 лет назад
nice video on entity framework
@saagarsoni3
@saagarsoni3 10 лет назад
thnx a lot sir
@mageshwarank5259
@mageshwarank5259 10 лет назад
This is way to add just one column in database(Every time change the model) .Now model changes behind the scene Entity totally drop the database and create new one .if my database have some data then i want just add on additional column to that table without delete the existing record and just alter my table with new column ....how do it =>Thank You
@krimbelkacem5751
@krimbelkacem5751 10 лет назад
please make us a tutorial about Deploying Windows app and Windows Server 2012 R2 using MDT Printing and the most its most important options thank you very much for this series!
@cherryt6853
@cherryt6853 6 лет назад
Hello Sir, In real time Projects/applications which Approach is the best? 1. Simple EF, 2. POCO(model) , 3. Code First ?? Please Let me know. My DB containing number of Procedures and Views.
@ferasighbaria
@ferasighbaria 8 лет назад
hi what about migration model. or how i can add column to existing table. without losing the data.
@azizbekibnhamid642
@azizbekibnhamid642 Год назад
Thanks
@ivandrofly
@ivandrofly 10 лет назад
Thank you :)
@alialrahem9817
@alialrahem9817 5 лет назад
I did creat a database but l will check this video if it works to seed the database
@shailendraphadke5557
@shailendraphadke5557 10 лет назад
Here, whichever test data you have added it is displaying as it is in y application too. but then problem is when I add a new employee nothing happen.Why?
@mohitsingh9614
@mohitsingh9614 7 лет назад
hello sir i am getting an error.please tell me what is the problem here. error: Server Error in '/' Application. A field or property with the name 'userCity1' was not found on the selected data source. 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.Web.HttpException: A field or property with the name 'userCity1' was not found on the selected data source. 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. here is used UserCity table that contain id and userCity Name, and tblUser which contain FirstName,LastName,Gender etc, My DB is getting populated but still i am getting such error.please help ASAP
@kiranh8966
@kiranh8966 7 лет назад
(Entity FrameWork Part-6) If we don't make changes in Model(i.e either in department or employee) and try to run the program by making modifications in EmployeeDBContextSeeder class it will run successfully but the changes which are done in EmployeeDBContextSeeder will not be reflected in the browser. So need your hep in understanding this concept of Data-Migration History and why those changes in EmployeeDBContextSeeder class are not reflected in the browser. Thank you in advance
@vinoddhekane3155
@vinoddhekane3155 10 лет назад
Please Sir Upload Linq Video Tutorial.
@tech-with-inder
@tech-with-inder 6 лет назад
Hi, Can anyone tell me how can we seed huge number (say 1000) of tables with 1000 records each?
@poojabolwade9498
@poojabolwade9498 8 лет назад
how we overwrite an existing migration file
@srikanthkalyan9416
@srikanthkalyan9416 10 лет назад
please provide LINQ videos Thank you.
@ashutoshsingh5568
@ashutoshsingh5568 4 года назад
Why aren't you using migrations instead of these complex examples?
@kodamin6723
@kodamin6723 9 лет назад
Didn't work.