Files
using.cash/Database/Database-Attribute.cs
T
2013-01-08 22:11:15 +00:00

28 lines
770 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Swarmops.Database.Attributes
{
/// <summary>
/// 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
/// </summary>
[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;
}
}
}