开发者

Custom OData operation / customize EF model to hide join table in many-to-many relationship

I've got a data model that has two tables with a join table for a many to many relationship & creating an OData service to expos开发者_如何转开发e the data for CRUD ops in a Silverlight app. What I'd like to do is abstract the join table from the service. I'm not sure if the best way to do this would be in the model (using EF in .NET3.5SP1) or if I should do it with a custom service operation.

If I do it in the EF model (not sure how I'd do this), then the OOTB WCF Data Service stuff would make it easy to say [..]/Courses(1)/Modules ... otherwise I'd have to create a custom operation to do this.

Is it possible to do this in the EF model and if so, how does that work?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜