Created
March 24, 2012 23:35
-
-
Save breezhang/2189095 to your computer and use it in GitHub Desktop.
MVC3 .net4 Y can dynamic view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| strongly-typed View very stupid | |
| ///Key API | |
| dynamic object =ExpandoObject(); | |
| object.sex = ... | |
| object.name = ... | |
| razor view | |
| /// | |
| @model dynamic | |
| @Model.sex | |
| @Model.name | |
| ///done | |
| Object can Map Model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment