Adding config file windows application




















Keep Learning!! If this post answers your question, please click Mark As Answer. If this post is helpful please click Mark as Helpful. You can your connection string to ConnectionStrings section directly. ConnectionString; But sir After taking System. Configuration namespace i am not able to get ConfigurationManager.

Could u please help me. Did you add reference to "System. ConnectionString ; vicky Bangalore. So, are you able to get the connection string properly? ConnectionString ; i am able to fetch the data in gridview from the database but i am not able to insert update and delete the data in the database. Hi Vicky, If you are able to fetch data into gridview from DB using this connection string, that means connection is open and valid.

Here is first My fetch button that is fetching data successfully. Hope i sound helpful. Sir please check once again. I have taken data adaptor again i am posting this con. Tables["Student"]; con. Close ; please check that. Do you still face some issue? Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Notify me of follow-up comments by email.

Notify me of new posts by email. This site uses Akismet to reduce spam. Learn how your comment data is processed. Public Class SettingsConfig. Imports Contexts. Imports Microsoft. Imports Models. Namespace Contexts. Inherits DbContext. Public Sub New.

End Sub. New options. If Not optionsBuilder. IsConfigured Then. ApplyConfiguration New ContactsConfiguration.

OnModelCreatingPartial modelBuilder. End Namespace. AddJsonFile "appsettings. Windows 10 Annual Updates. OneDrive Windows 7 and 8. Copy and Paste Between Android and Windows.

Protect Windows 10 From Internet Explorer. Mozilla Fights Double Standard. Connect to a Hidden Wi-Fi Network. Change the Size of the Touch Keyboard. Reader Favorites Take Screenshot on Windows. Mount an ISO image in Windows. Boot Into Safe Mode.

Where to Download Windows Legally. Find Your Lost Product Keys. Clean Install Windows 10 the Easy Way. The Best Tech Newsletter Anywhere Join , subscribers and get a daily digest of news, geek trivia, and our feature articles.



0コメント

  • 1000 / 1000