Click here to Skip to main content
15,886,873 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionZedgraph YAxis Bit Values with Text Labels Pin
Member 224024223-Mar-14 22:22
Member 224024223-Mar-14 22:22 
QuestionVB.NET aximp.exe not found Pin
CharlesDE23-Mar-14 21:20
CharlesDE23-Mar-14 21:20 
AnswerRe: VB.NET aximp.exe not found Pin
Bernhard Hiller23-Mar-14 22:00
Bernhard Hiller23-Mar-14 22:00 
GeneralRe: VB.NET aximp.exe not found Pin
CharlesDE23-Mar-14 22:32
CharlesDE23-Mar-14 22:32 
QuestionIdentifying process completion Pin
Sam Marrocco23-Mar-14 10:26
Sam Marrocco23-Mar-14 10:26 
AnswerRe: Identifying process completion Pin
Alan N23-Mar-14 11:02
Alan N23-Mar-14 11:02 
GeneralRe: Identifying process completion Pin
Sam Marrocco23-Mar-14 11:23
Sam Marrocco23-Mar-14 11:23 
QuestionRemove connectionstring from app.config Pin
dilkonika22-Mar-14 7:30
dilkonika22-Mar-14 7: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 8:18
mvePIEBALDconsult22-Mar-14 8:18 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika22-Mar-14 8:43
dilkonika22-Mar-14 8:43 
GeneralRe: Remove connectionstring from app.config Pin
Eddy Vluggen22-Mar-14 8:49
professionalEddy Vluggen22-Mar-14 8:49 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika22-Mar-14 9:20
dilkonika22-Mar-14 9:20 
GeneralRe: Remove connectionstring from app.config Pin
Dave Kreskowiak22-Mar-14 12:28
mveDave Kreskowiak22-Mar-14 12:28 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika22-Mar-14 13:48
dilkonika22-Mar-14 13:48 
GeneralRe: Remove connectionstring from app.config Pin
Dave Kreskowiak22-Mar-14 14:37
mveDave Kreskowiak22-Mar-14 14:37 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika22-Mar-14 14:54
dilkonika22-Mar-14 14:54 
GeneralRe: Remove connectionstring from app.config Pin
Dave Kreskowiak23-Mar-14 3:55
mveDave Kreskowiak23-Mar-14 3:55 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika23-Mar-14 4:58
dilkonika23-Mar-14 4:58 
GeneralRe: Remove connectionstring from app.config Pin
Dave Kreskowiak23-Mar-14 13:02
mveDave Kreskowiak23-Mar-14 13:02 
GeneralRe: Remove connectionstring from app.config Pin
dilkonika23-Mar-14 13:58
dilkonika23-Mar-14 13:58 
GeneralRe: Remove connectionstring from app.config Pin
Dave Kreskowiak23-Mar-14 14:19
mveDave Kreskowiak23-Mar-14 14:19 
GeneralRe: Remove connectionstring from app.config Pin
PIEBALDconsult22-Mar-14 12:12
mvePIEBALDconsult22-Mar-14 12:12 
QuestionODBC Connection Pin
SPSandy21-Mar-14 5:47
SPSandy21-Mar-14 5:47 
AnswerRe: ODBC Connection Pin
Simon_Whale21-Mar-14 5:49
Simon_Whale21-Mar-14 5:49 
GeneralRe: ODBC Connection Pin
SPSandy21-Mar-14 7:46
SPSandy21-Mar-14 7: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.