LINQ to SQL Dynamic Mapping

Posted by: Guy Barrettes WebLog, on 23 Jul 2008 | View original | Bookmarked: 0 time(s)

The problemYou have SQL Servers for each of your environments (development, test, pre-prod, production) and in each one, the table names are different.  In fact, its not the table names that are different but the schema names but since the schema name is part of the table name, it must be specified.Ex : dev.ZeTable et prod.ZeTable Easy to solve, right?  Just put the schema value in the config file and do a simple concatenation at runtime.  Well, its not as easy as it seams because...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: SQL | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2267 | Hits: 125

Similar Posts

  • Html Encoding Nuggets With ASP.NET MVC 2 more
  • Introducing Versatile DataSources more
  • Connecting to SQL Azure with Telerik OpenAccess more
  • Migrating to Postgresql with my friend NHibernate more
  • Dynamic in C# 4.0: Creating Wrappers with DynamicObject more
  • Migrated from Community Server to DasBlog more
  • Serialising Microsoft StreamInsight QueryTemplates more
  • RadScheduler for Silverlight learning series, part 3: Add, Edit, and Delete Appointments more
  • Important Entity Framework Query Improvements for .NET 4.0 more
  • Next version of EF Code Only Design laid out by MS more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD