Created
April 8, 2015 05:33
-
-
Save jpda/ca2d1a85690d353c37ee to your computer and use it in GitHub Desktop.
Attribute Metadata
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
public class SomeEntity : TableEntity | |
{ | |
[IndexMetadata("Id", IsKey = true, IsRetrievable = true, IsSearchable = true, IsSortable = true)] | |
public string Id | |
{ | |
get { return RowKey; } | |
set { RowKey = value; } | |
} | |
[IndexMetadata("Title", IsKey = false, IsRetrievable = true, IsSearchable = true, IsSortable = true)] | |
public string Title { get; set; } | |
[IndexMetadata("Industry", IsKey = false, IsRetrievable = true, IsSearchable = true, IsSortable = true, IsFacetable = true)] | |
public string Industry { get; set; } | |
[IndexMetadata("OtherField", IsKey = false, IsRetrievable = true, IsSearchable = true, IsSortable = true)] | |
public string OtherField { get; set; } | |
[IndexMetadata("MoreData", IsKey = false, IsRetrievable = true, IsSearchable = true, IsFacetable = true, IsFilterable = true)] | |
public string MoreData { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment