|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Signum.Entities
{
[AttributeUsage(AttributeTargets.Property)]
public sealed class QueryablePropertyAttribute : Attribute
{
public bool AvailableForQueries { get; set; }
public QueryablePropertyAttribute(bool availableForQueries)
{
this.AvailableForQueries = availableForQueries;
}
}
[AttributeUsage(AttributeTargets.Property)]
public class HiddenPropertyAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Property)]
public class UnitAttribute : Attribute
{
public string UnitName { get; private set; }
public UnitAttribute(string unitName)
{
this.UnitName = unitName;
}
}
[AttributeUsage(AttributeTargets.Property)]
public class FormatAttribute : Attribute
{
public string Format { get; private set; }
public FormatAttribute(string format)
{
this.Format = format;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm Computer Scientist, one of the founders of Signum Software, and the lead developer behind Signum Framework.
www.signumframework.com
I love programming in C#, Linq, Compilers, Algorithms, Functional Programming, Computer Graphics, Maths...