Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Tag Helpers: add ModelExpression class to support Expression<Func<TModel, TValue>> properties #1240

Closed
dougbu opened this issue Oct 6, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@dougbu
Copy link
Member

dougbu commented Oct 6, 2014

We do not want to force tag helper authors toward generic classes. Turns out the TModel / TValue use in existing HTML helpers ends once the code has an expression name and a ModelMetadata instance. Encapsulate these in a ModelExpression class and provide a CreateModelExpression() method in RazorPage<TModel>.

@dougbu dougbu added this to the 6.0.0-beta1 milestone Oct 6, 2014
@dougbu dougbu self-assigned this Oct 6, 2014
@dougbu dougbu changed the title Tag helpers: add ModelExpression class to support Expression<Func<TModel, TValue>> properties Tag Helpers: add ModelExpression class to support Expression<Func<TModel, TValue>> properties Oct 6, 2014
dougbu added a commit that referenced this issue Oct 7, 2014
…TModel, TValue>>` attributes

- includes new `RazorPage<TModel>.CreateModelExpression<TValue>()` method
- #1240

nit:
- regenerating the resources reordered Microsoft.AspNet.Mvc.Core's Resources.designer.cs
dougbu added a commit that referenced this issue Oct 7, 2014
…TModel, TValue>>` attributes

- includes new `RazorPage<TModel>.CreateModelExpression<TValue>()` method
- #1240

nit:
- regenerating the resources reordered Microsoft.AspNet.Mvc.Core's Resources.designer.cs
@dougbu
Copy link
Member Author

dougbu commented Oct 7, 2014

Pushed in commits 639a788 through 05c35dd

@dougbu dougbu closed this as completed Oct 7, 2014
dougbu added a commit that referenced this issue Oct 8, 2014
…TModel, TValue>>` attributes

- includes new `RazorPage<TModel>.CreateModelExpression<TValue>()` method
- #1240

nit:
- regenerating the resources reordered Microsoft.AspNet.Mvc.Core's Resources.designer.cs
dougbu added a commit that referenced this issue Oct 9, 2014
…TModel, TValue>>` attributes

- includes new `RazorPage<TModel>.CreateModelExpression<TValue>()` method
- #1240

nit:
- regenerating the resources reordered Microsoft.AspNet.Mvc.Core's Resources.designer.cs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant