views:

48

answers:

1

Hi,

I've been reading over the internet about a partial method that I can use called OnCreated() to run some logic against my Linq - SQL class while it is being created. How ever there is no partial class by that name for me to use. I'm sure I'm missing something small here.

Here is what I'm trying to call in the partial class

partial void OnCreated()

I'm getting the compile time error of

No defining declaration found for implementing declaration of partial method...

So I guess its not there and my question is why?

Thanks

+1  A: 

Only tables a view will have the Partial OnCreated

it works fine over here

the stored procedures are methods of the datacontext, they are not generating classes

freddoo