开发者

ASP .NET DynamicData Custom Provider

开发者 https://www.devze.com 2023-01-11 06:51 出处:网络
I\'m implementing a custom DynamicData provider for ASP .NET, but for the life of me, I can\'t figure out where in the API to define how my custom provider should do saves/updates/inserts...

I'm implementing a custom DynamicData provider for ASP .NET, but for the life of me, I can't figure out where in the API to define how my custom provider should do saves/updates/inserts...

For my custom provider, I've created:

DataModelProvider
TableProvider
ColumnProvider
AssociationProvider

and an IDisposable DataContext (which is where my save method is)...

Bu开发者_Go百科t I don't see how I can wire up DynamicData to my DataContext's save method...

Sorry, I know this seems simple, and I was about to reflector some code to check it out, but I figured I'd ask here first.

Thanks.


I just started out on the same path.

Don't have an answer yet, but some clues might be found here:

http://hestia.typepad.com/flatlander/2008/12/aspnet-dynamic-data-and-custom-sources.html

Quoting:

.. in Global.asax.cs, you will of course need to pass an instance of your DataModelProvider instead of a LINQ to SQL DataContext..

0

精彩评论

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

关注公众号