Click here to Skip to main content
15,562,816 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionZedgraph YAxis Bit Values with Text Labels Pin
Member 224024223-Mar-14 23:22
Member 224024223-Mar-14 23:22 
QuestionVB.NET aximp.exe not found Pin
CharlesDE23-Mar-14 22:20
CharlesDE23-Mar-14 22:20 
AnswerRe: VB.NET aximp.exe not found Pin
Bernhard Hiller23-Mar-14 23:00
Bernhard Hiller23-Mar-14 23:00 
GeneralRe: VB.NET aximp.exe not found Pin
CharlesDE23-Mar-14 23:32
CharlesDE23-Mar-14 23:32 
QuestionIdentifying process completion Pin
Sam Marrocco23-Mar-14 11:26
Sam Marrocco23-Mar-14 11:26 
AnswerRe: Identifying process completion Pin
Alan N23-Mar-14 12:02
Alan N23-Mar-14 12:02 
GeneralRe: Identifying process completion Pin
Sam Marrocco23-Mar-14 12:23
Sam Marrocco23-Mar-14 12:23 
QuestionRemove connectionstring from app.config Pin
dilkonika22-Mar-14 8:30
dilkonika22-Mar-14 8:30 
Hello !
I have an application that use entity framework 6 on vb.net and sql server.
Inside the app.config file there is the connection string to this entity that is created automatically during wizard.
But when I finish the application , this connection string is inside the file Myapplication.exe.confg , and the users can open this file and can change connection string.
Is possible to remove the connection string from this file and to create during application startup , and after to include this connection string to entity declaration for example Dim entity1 as Myentities(Connectionstring).
My question is that if this is possible , how can I create the connection string with all information needed .
My current connection string inside the app.config is :

XML
<connectionStrings>
    <add name="Entity1" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=PC1;initial catalog=MyDB;integrated security=True;multipleactiveresultsets=True;application name=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>


Thank you !
GeneralRe: Remove connectionstring from app.config Pin
PIEBALDconsult22-Mar-14 9:18
professionalPIEBALDconsult22-Mar-14 9:18 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika22-Mar-14 9:43
dilkonika22-Mar-14 9:43 
GeneralRe: Remove connectionstring from app.config Pin
Eddy Vluggen22-Mar-14 9:49
professionalEddy Vluggen22-Mar-14 9:49 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika22-Mar-14 10:20
dilkonika22-Mar-14 10:20 
GeneralRe: Remove connectionstring from app.config Pin
Dave Kreskowiak22-Mar-14 13:28
mveDave Kreskowiak22-Mar-14 13:28 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika22-Mar-14 14:48
dilkonika22-Mar-14 14:48 
GeneralRe: Remove connectionstring from app.config Pin
Dave Kreskowiak22-Mar-14 15:37
mveDave Kreskowiak22-Mar-14 15:37 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika22-Mar-14 15:54
dilkonika22-Mar-14 15:54 
GeneralRe: Remove connectionstring from app.config Pin
Dave Kreskowiak23-Mar-14 4:55
mveDave Kreskowiak23-Mar-14 4:55 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika23-Mar-14 5:58
dilkonika23-Mar-14 5:58 
GeneralRe: Remove connectionstring from app.config Pin
Dave Kreskowiak23-Mar-14 14:02
mveDave Kreskowiak23-Mar-14 14:02 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika23-Mar-14 14:58
dilkonika23-Mar-14 14:58 
GeneralRe: Remove connectionstring from app.config Pin
Dave Kreskowiak23-Mar-14 15:19
mveDave Kreskowiak23-Mar-14 15:19 
GeneralRe: Remove connectionstring from app.config Pin
PIEBALDconsult22-Mar-14 13:12
professionalPIEBALDconsult22-Mar-14 13:12 
QuestionODBC Connection Pin
SPSandy21-Mar-14 6:47
SPSandy21-Mar-14 6:47 
AnswerRe: ODBC Connection Pin
Simon_Whale21-Mar-14 6:49
Simon_Whale21-Mar-14 6:49 
GeneralRe: ODBC Connection Pin
SPSandy21-Mar-14 8:46
SPSandy21-Mar-14 8:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.