-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for documentation to ODataConventionModelBuilder #26
Comments
On 2013-04-02 03:06:18 UTC, HongmeiG commented: Nice feature request Thargy! Today you could add the documentation yourself after the model is built by the conventional model builder. |
On 2013-04-09 08:35:58 UTC, raghuramn commented: private static IEdmModel GetEdmModel()
} private static void DocumentModel(IEdmModel model)
} |
On 2013-09-06 05:56:56 UTC, KevinBurton commented: So for the slow how is this used? For example one of the resources that I am adding looks like: A portion of the ScheduleRepresentation looks like: Is it as simple as adding /// comments to each property? If so should they be /// ? Thank you. |
On 2013-09-06 07:23:08 UTC, raghuramn commented: @kevin: we don't automatically parse the xml documentation and populate the model with it. The above sample shows how to annotate an EDM model with documentation. You should write code to parse the xml doc file or wherever your documentation lives and |
@LianwMS I'm trying to use your method posted on Jan 11th to simply set the documentation. I am finding that the SetDocumentation method is internal, how then can this be done at this point? Here is the Edm version I'm using. Here is the static method. internal static void SetDocumentation(this IEdmModel model, IEdmElement element, IEdmDocumentation documentation) I've been trying to muck around to find how to do this but it's slow going. |
Close this because OData V4 spec doesn't have Document element. |
This can be done easily by looking for the System.ComponentModel.Description
attribute on entities and properties, and using the EDM model's
SetDocumentation() method.
Work Item Details
Original CodePlex Issue: Issue 784
Status: Proposed
Reason Closed: Unassigned
Assigned to: Unassigned
Reported on: Jan 18, 2013 at 9:44 AM
Reported by: thargy
Updated on: Feb 7, 2014 at 7:01 PM
Updated by: troydalldorf
The text was updated successfully, but these errors were encountered: