using System.Security.Permissions; namespace System.Web.DynamicData { /// /// Allows for overriding the name of a table. (What previously TableOptions was used for). /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class TableNameAttribute : Attribute { /// /// The new name of the table /// public string Name { get; private set; } /// /// Creates a new instance /// /// the new name override public TableNameAttribute(string name) { if (String.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } Name = name; } } }