Created
October 13, 2016 12:14
-
-
Save sshibani/4a35490e01cdf78f5f3c6d392f9a3dbd to your computer and use it in GitHub Desktop.
View model using extended attribute
This file contains 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
[ContentModel("product", true)] | |
public class Product : ViewModelBase | |
{ | |
[TextField] | |
public string Title { get; set; } | |
[ProductPrice(FieldName = "productId")] | |
public double Price { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment