Click here to Skip to main content
15,901,373 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Synchronizing raised events to UI thread possible? Pin
Eddy Vluggen26-Mar-14 8:24
professionalEddy Vluggen26-Mar-14 8:24 
QuestionQuestions about SMO Pin
dilkonika24-Mar-14 2:57
dilkonika24-Mar-14 2:57 
AnswerRe: Questions about SMO Pin
Chris Quinn24-Mar-14 3:30
Chris Quinn24-Mar-14 3:30 
GeneralRe: Questions about SMO Pin
dilkonika24-Mar-14 4:02
dilkonika24-Mar-14 4:02 
GeneralRe: Questions about SMO Pin
Chris Quinn24-Mar-14 4:05
Chris Quinn24-Mar-14 4:05 
GeneralRe: Questions about SMO Pin
dilkonika24-Mar-14 4:08
dilkonika24-Mar-14 4:08 
GeneralRe: Questions about SMO Pin
Chris Quinn24-Mar-14 4:10
Chris Quinn24-Mar-14 4:10 
GeneralRe: Questions about SMO Pin
Chris Quinn24-Mar-14 4:14
Chris Quinn24-Mar-14 4:14 
GeneralRe: Questions about SMO Pin
Eddy Vluggen24-Mar-14 8:13
professionalEddy Vluggen24-Mar-14 8:13 
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 

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.