Can I specify a set of base parameters for a Linq-to-sql DataContext?

You could have a pre-written Expression> GetPrices = p => // do Lambda here Alternatively you can put properties into your DataContext (remember, it's a partial class so it's easy to extend) which you set and are then read in by your expression.

You could have a pre-written Expression which you then have those values in it: public Expression> GetPrices = p => // do Lambda here Alternatively you can put properties into your DataContext (remember, it's a partial class so it's easy to extend) which you set and are then read in by your expression.

That was my thinking, but I'm not sure where to set those values within the partial class. – cori Nov 12 '08 at 17:57 you should create a separate code file for your bits. Keep in mind that the .

Designer files are auto generated so you should never edit them! – Slace Nov 14 '08 at 7:35.

I have a LINQ-to-SQL DataContext that represents a parent-child relationship of Products to Prices. I'm iterating through a list of products and retrieving the prices for each one. The problem is that the tables behind both the Products and Prices contain a list of Products or Prices for multiple environments, determined by a 3 field complex key.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions