Skripta enstaka tabeller med SubSonic

SubSonic är riktigt trevligt att jobba med och vi använder det mer och mer i våra projekt. Dels så är det smidigt att få ett helt databaslager skapat automatiskt, men även bra till att skripta ut struktur och data från databaser.

Ibland vill man bara ha några enstaka tabeller och då kan man skriva enlgt följande i sin App.config. Hittade hur man gör för att skriva in Regex-uttryck i fältet includeTableList i SubSonic-forumet.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
<section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" requirePermission="false"/>
  </configSections>
  <connectionStrings>
    <add name="ConnectionString" connectionString="Data Source=(local);Initial Catalog=MyLocalDatabase;Integrated Security=True"/>
  </connectionStrings>
  <SubSonicService defaultProvider="Provider" >
    <providers>
      <clear/>
      <add name="Provider"
           type="SubSonic.SqlDataProvider, SubSonic" includeTableList="\b(Table1|Table2|ThirdTable)\b" connectionStringName="ConnectionString" generatedNamespace="MyNamespace.DAL" />
    </providers>
  </SubSonicService>
</configuration>

Comments

Coming from my observation, shopping for technology online can for sure be expensive, nevertheless there are some tips and tricks that you can use to help you get the best deals. There are often ways to uncover discount promotions that could help make one to buy the best electronic devices products at the cheapest prices. Thanks for your blog post.

There are often ways to uncover discount promotions that could help make one to buy the best electronic devices products at the cheapest prices. Thanks for your post. http://www.onlinepromotionuae.ae

Great post, Calling at Dell Helpline Number UK 0800-098-8371 will help you if you are facing issue in the computer. You can call the technicians all round the clock. The Technicians will provide 24*7 services.

Thanks for this awesome web page, i like it. cannon printer support

This is outstanding and great post! i really like it.thank you so much. avg support number

Please fill out all the fields.

*
*