Create DataContext with XmlMappingSource
In the connection properties dialog, you could add a field for XmlMappingSource path and then use it to create the DataContext:
string xml = File.ReadAllText(pathToXmlMappingFile);
MappingSource mapping = XmlMappingSource.FromXml(xml);
DataContext context = new DataContext(connectionString, mapping);
10
votes
anonymous
shared this idea