Extension methods for L2S types
Hello
Forgive me if i am being kind of a newb here, but i'm new using linqpad.
How can i create an extension method to a type generated by the linqpad L2S provider?
Example: i created a connection to the AdventureWorks database with linq 2 sql. Now i want to create an extension method for the IEnumerable«LINQPad.User.DimDate» type. How can i do this so that i can use it in all my queries?
Thanks
Forgive me if i am being kind of a newb here, but i'm new using linqpad.
How can i create an extension method to a type generated by the linqpad L2S provider?
Example: i created a connection to the AdventureWorks database with linq 2 sql. Now i want to create an extension method for the IEnumerable«LINQPad.User.DimDate» type. How can i do this so that i can use it in all my queries?
Thanks
Comments
For example:
Thanks for the answer but what i really want to know is how to write an Extension Method specifically for that type, not a generic one. When i write that extension method for type IEnumerable«LINQPad.User.DimDate» the DimDate type is not found.