Is there any way of changing the default mapping for LINQ to sql datacontexts? I want to change INT to map to long rather than int every time a new entity is created.
Is there any way of changing the default mapping for LINQ to sql datacontexts?
Share
Two ways I can think of:
System.Int32toSystem.Int64(easy to create a little command-line app so you just need to double-click it whenever you refresh the DBML).Or:
Just hand-code the classes anyway. I actually find it handier to hand-code than DBML – when I make a change I’m likely going to be making a bunch of related changes anyway, so it fits right into how I’m thinking of the change’s implications anyway.