Created
January 13, 2014 15:21
-
-
Save BartDM/8402162 to your computer and use it in GitHub Desktop.
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
/// <summary> | |
/// Custom attribute to define the field that can be seached on | |
/// </summary> | |
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)] | |
public class SearchField : System.Attribute | |
{ | |
public string[] CombinedSearchFields; | |
public SearchField(params string[] values) | |
{ | |
this.CombinedSearchFields = values; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment