-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
AutoQueryViewerAttributes.cs
33 lines (31 loc) · 1.25 KB
/
AutoQueryViewerAttributes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
namespace ServiceStack
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class AutoQueryViewerAttribute : AttributeBase
{
public string Name { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string IconUrl { get; set; }
public string BrandUrl { get; set; }
public string BrandImageUrl { get; set; }
public string TextColor { get; set; }
public string LinkColor { get; set; }
public string BackgroundColor { get; set; }
public string BackgroundImageUrl { get; set; }
public string DefaultSearchField { get; set; }
public string DefaultSearchType { get; set; }
public string DefaultSearchText { get; set; }
public string DefaultFields { get; set; }
}
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
public class AutoQueryViewerFieldAttribute : AttributeBase
{
public string Title { get; set; }
public string Description { get; set; }
public bool HideInSummary { get; set; }
public string ValueFormat { get; set; }
public string LayoutHint { get; set; }
}
}