Where's the rest of code of .dbml file? RRS feed

  • Question

  • I'm understanding the designer.dbml code, but there's some methods that has no track of code, like the ones in "Extensibility Method Definitions" region.
    Where is that code? It is hidden?

    I see that they are "partial", but there's no other file than <fileName>.designer.dbml and <filename>.dbml.layout .

    Get a life. Go party!
    Friday, November 27, 2009 10:28 PM


  • Partial methods are methods that you define in a partial class declaration. If you don't define them, execution continues as if the methods don't exist. But if you do define them, LINQ to SQL will see that they do exist and call them.

    It may help you to read more about partial methods:

    Blog - Twitter - @ddewinter
    • Marked as answer by Yichun_Feng Friday, December 4, 2009 3:33 AM
    Sunday, November 29, 2009 9:53 PM