using System; namespace ServiceStack.DataAnnotations { /// /// Compute attribute. /// Use to indicate that a property is a Calculated Field /// [AttributeUsage(AttributeTargets.Property)] public class ComputeAttribute : AttributeBase { public string Expression { get; set; } public ComputeAttribute() : this(string.Empty) { } public ComputeAttribute(string expression) { Expression = expression; } } }