To do this you need to add a "d: DataContext" property to the same object that will get the real data context.
为了达成这一点,需要向接收实际数据上下文的对象增加一个“d:DataContext”属性。
Another third way you could set it at a DataContext level (which, to be clear, would affect every generated LINQ to SQL query executed on that context) would be to execute the command.
至于第三种做法,您可以在DataContext级别进行设置(很明显,这会影响每个生成的执行在上下文之上的LINQ toSQL查询语句),使它执行如下命令。
Another third way you could set it at a DataContext level (which, to be clear, would affect every generated LINQ to SQL query executed on that context) would be to execute the command.
至于第三种做法,您可以在DataContext级别进行设置(很明显,这会影响每个生成的执行在上下文之上的LINQ toSQL查询语句),使它执行如下命令。
应用推荐