title: Embedded ConfigFile In Exe file
body: <p>I want to create application which is App.config file data like connectionString etc... to embedded in Exe file</p>
  
  <p>when application release .exe file after create exe file and after delete app.config file
   how run application without app.config file</p>
  
  <p>how to embedded app.config file in .exe file.</p>
  
  <p>my config file :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;       
      &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
    &lt;/configSections&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
    &lt;/startup&gt;
    &lt;connectionStrings&gt;
      &lt;add name="DataBaseEntities" connectionString="metadata=res://*/Model.DataBase.csdl|res://*/Model.DataBase.ssdl|res://*/Model.DataBase.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=127.0.0.1;initial catalog=DataBase;persist security info=True;user id=abc;password=123;MultipleActiveResultSets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
    &lt;/connectionStrings&gt;
    &lt;entityFramework&gt;
      &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /&gt;
      &lt;providers&gt;
        &lt;provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /&gt;
      &lt;/providers&gt;
    &lt;/entityFramework&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>my Program :</p>
  
  <pre><code>    public static void Main(string[] args)
      { 
          using (DataBaseEntities entities = new DataBaseEntities())
          {
              List&lt;User&gt; user= objEntities.UserTable.ToList();              
          }
  
          Console.ReadKey();
      }
  </code></pre>
  
  <p>atfer Delete app.config file run application and retrive data as it is.</p>