tag:blogger.com,1999:blog-6367112134390591724.post4758633293367678232..comments2024-03-23T10:06:12.663-07:00Comments on ITORIAN BLOG: Code First Approach in Entity FrameworkUnknownnoreply@blogger.comBlogger36125tag:blogger.com,1999:blog-6367112134390591724.post-64779106499489237062016-10-10T04:40:39.513-07:002016-10-10T04:40:39.513-07:00Thank you so much ♥Thank you so much ♥Anonymoushttps://www.blogger.com/profile/09889510556543582500noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-71244193630504892342015-10-08T05:39:13.649-07:002015-10-08T05:39:13.649-07:00HI,
i don't now any thing in Mvc just Beginner...HI,<br />i don't now any thing in Mvc just Beginner code first approch connection string is needed or not ?<br />Anonymoushttps://www.blogger.com/profile/08270210713843279508noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-37271890332007807762015-09-29T07:43:03.020-07:002015-09-29T07:43:03.020-07:00Thank youThank youAnonymoushttps://www.blogger.com/profile/04934599014162907217noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-54956489071141852092015-03-18T02:29:39.736-07:002015-03-18T02:29:39.736-07:00Thanks alot Abhimanyu Kumar Vatsa this article hel...Thanks alot Abhimanyu Kumar Vatsa this article helps me alot..Anonymoushttps://www.blogger.com/profile/00850388814703300841noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-25649224682805760172015-01-25T20:28:48.698-08:002015-01-25T20:28:48.698-08:00Good article on Entity Framework Code first approa...Good article on <a href="http://www.dotnetspan.com/2015/01/step-by-step-entity-framework-code-first-approach.html" rel="nofollow">Entity Framework Code first approach with example</a>Bhavik Patelhttps://www.blogger.com/profile/00680862196766546649noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-85180565797289266562014-09-15T13:24:04.019-07:002014-09-15T13:24:04.019-07:00Sir if i do not Add Migration in project Sir if i do not Add Migration in project Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-10072346355656460442014-08-05T23:04:43.353-07:002014-08-05T23:04:43.353-07:00unable to add StudentController..it give the follo...unable to add StudentController..it give the following error<br />unable to retreive metadata for mvcapplication8.models.student..unable to cast of type 'system.Data.Entity.Objects.Objectcontext' to type 'System.Data.Objects.ObjectContext'<br />Anonymoushttps://www.blogger.com/profile/04619299984600119223noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-6732186941135911102014-07-07T08:37:30.901-07:002014-07-07T08:37:30.901-07:00I am not able to add StudentController . it giving...I am not able to add StudentController . it giving me error Maheshhttps://www.blogger.com/profile/05128448005025964933noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-2395996043960338362014-06-30T06:18:44.389-07:002014-06-30T06:18:44.389-07:00hi,
It will be visible to you once you will to th...hi,<br /><br />It will be visible to you once you will to the App_Data folder in your drive. Not through the Solution Explorer.<br /><br />~ Regards,<br />Kush kant dayal | Pune <br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-80809514224104361192014-06-30T06:15:57.937-07:002014-06-30T06:15:57.937-07:00Hi Abhimanyu,
It's really very short,simple,q...Hi Abhimanyu,<br /><br />It's really very short,simple,quick and easy learning. Great stuff.<br />I have one issues while using this approach it getting error, "add-migration error: "model backing the context has changed" and "The model backing the ... context has changed since the database was created". <br />To short this problem out, I used the following line in myAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-3949776207494878262014-06-11T04:01:39.099-07:002014-06-11T04:01:39.099-07:00hi
I had doubt is this code will effect in the lo...hi <br />I had doubt is this code will effect in the local data base means we have inserted number of employees list is this reflect in local data base or not and i did this example but data base was not created in the local server<br />and my question is how to update this created Student<br /> controller in the local database<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-61956498439701032282014-06-04T20:04:34.334-07:002014-06-04T20:04:34.334-07:00If you are going for finest contents like I do, si...If you are going for finest contents like I do, simply pay <br />a visit this site daily since it gives quality contents, thanks<br /><br />My blog <a href="http://prideserve.com/blog/view/641/promotional-products-a-lucrative-create-money-online-company" rel="nofollow">easy paycheck formula scam</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-78199218297473528632014-04-27T11:54:13.955-07:002014-04-27T11:54:13.955-07:00thank you very much , that's so helpful , i...thank you very much , that's so helpful , i'm a beginner in .NET and c# :DAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-62143865465898967052014-02-25T04:56:32.423-08:002014-02-25T04:56:32.423-08:00Hii , Abhi Sir ,
Very good post and it work very...Hii , Abhi Sir , <br /><br />Very good post and it work very well and very well explained !! I have done migration by enabling the Migration in the Package Manager Console..<br /><br />Can you tell me how to rename column in the Database using the Package manager Console ???<br /><br />Waiting for your reply.GD !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-45748003956131113182013-10-17T07:32:48.748-07:002013-10-17T07:32:48.748-07:00Hi Abhimanyu sir, which approach is better accordi...Hi Abhimanyu sir, which approach is better according to u if we want to use entity framework?Mickyhttps://www.blogger.com/profile/18252000973389596880noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-62737720130256716142013-09-04T21:21:57.337-07:002013-09-04T21:21:57.337-07:00Database.SetInitializer(new DropCreateDatabaseIfMo...Database.SetInitializer(new DropCreateDatabaseIfModelChanges());<br /><br />The above code will drop the database when we change the model, instead of this approach use package manager console to enable Migrations<br /><br />following code will enable the Migrations and update the database without loosing data.<br /><br />PM> Enable-Migrations -ContextTypeName Anonymoushttps://www.blogger.com/profile/15790280607024345373noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-15588018446277329972013-08-30T01:03:47.786-07:002013-08-30T01:03:47.786-07:00Heloo sir I have Created Project as suggested by ...Heloo sir I have Created Project as suggested by you. Project Works Fine <br /><br />But i am not able to see the database in the App_data folder in fact that folder it self is not available in the Project <br /><br />What to do where to find the Database please help me !!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-76072062464920323092013-07-26T05:36:20.013-07:002013-07-26T05:36:20.013-07:00Thank you very much it is working.Thank you very much it is working.Himahttps://www.blogger.com/profile/07901292963085983043noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-50192837537472492732013-07-25T22:30:40.722-07:002013-07-25T22:30:40.722-07:00You need to add in View's web.config file like...You need to add in View's web.config file like below<br /><br /><namespaces><br />.....<br /> <add namespace="System.Web.Optimization" /><br />.....Abhimanyu Kumar Vatsahttps://www.blogger.com/profile/01536208807178853605noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-87877662511178443072013-07-25T08:12:44.841-07:002013-07-25T08:12:44.841-07:00Hi Abhimanyu,
I am very new to MVC and like ...Hi Abhimanyu,<br /> I am very new to MVC and like to learn. I have created the project as above. But when I click CreateNew it gives me this error:<br />CS0103: The name 'Scripts' does not exist in the current context<br />@Scripts.Render("~/bundles/jqueryval")<br /><br />Can you please help?<br /><br />Thank youHimahttps://www.blogger.com/profile/07901292963085983043noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-70646305736186499752013-04-13T23:54:42.049-07:002013-04-13T23:54:42.049-07:00Thanks Abhimanyu,
In my projects I use Code First...Thanks Abhimanyu,<br /><br />In my projects I use Code First to an Existing Database approach so the Code First creates a code based model that maps to an existing database using reverse engineering code first.<br />but I got stuck when I changed the database updating or adding some column and I don't know how to update my classes in the project.<br /><br />Thank.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-55129205301978264362013-04-01T01:58:17.668-07:002013-04-01T01:58:17.668-07:00Every time you make changes in conceptual model (d...Every time you make changes in conceptual model (database model), use migration always to update database and safeguard your previous records.Abhimanyu Kumar Vatsahttps://www.blogger.com/profile/01536208807178853605noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-25156714811780991912013-04-01T01:32:25.834-07:002013-04-01T01:32:25.834-07:00Hi Abhimanyu Sir,
How it is possible when my clas...Hi Abhimanyu Sir,<br /><br />How it is possible when my class has some change and after migration of database then its table data should not be lost.Anonymoushttps://www.blogger.com/profile/13531794119762215968noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-56219523893472786722013-03-20T22:31:16.232-07:002013-03-20T22:31:16.232-07:00Thanks Abhimanyu,
Really a good article to unders...Thanks Abhimanyu,<br /><br />Really a good article to understand the code first approch.Please suggest me that can we use this approach in a fresh NopCommerce application?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-28308329624913272542013-02-27T04:49:29.249-08:002013-02-27T04:49:29.249-08:00Thanks Abhi,
Looking forward for more such stuff ...Thanks Abhi,<br /><br />Looking forward for more such stuff related to ASP.NET MVC.......Anonymousnoreply@blogger.com