4

I don't know how to set up external mapping file for LINQ to SQL. I've read Ivan Latunov's blog post about it and it woke up my interest in it. The problem is that I don't understand how things should go. The main question is: what is the howto if I want only to modify xml mapping file? Do I first create .dbml file and then supply MappingSource object with information about the custom xml file or there is another better way?

1
  • It should stand: "The main question is: what is the best practice if I want only to modify xml mapping file?" Commented Jun 13, 2009 at 8:27

2 Answers 2

3

look into the SQLMetal utility (found by opening up a Visual Studio Command Prompt and typing the command in).

I think this allows you to just create maps either from databases or from pre-existing dbml files


After your first comment, I believe that this article is probably slightly closer to what you are looking for. It shows you how to load a custom mapping file at runtime

Sign up to request clarification or add additional context in comments.

1 Comment

SQLMetal is a code generator and I don need one. What about hand editing?
0

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.