using System; namespace Swarmops.Database.Attributes { /// /// DbRecordType is used to mark a class what its database record is named /// Needed if a Logic entity is using Database-condition and have to work with a subclass /// i.e. [DbRecordType("Person")] on class Person /// [AttributeUsage(AttributeTargets.All)] public class DbRecordType : System.Attribute { string typeName = ""; public string TypeName { get { return typeName; } set { typeName = value; } } public DbRecordType (string recordname) { typeName = recordname; } } }