开发者

Why doesn't my linq to sql generated classes have OnCreated()

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜