galaeth-draft/Galaeth.Core/Attributes/EntityAnnotation/TableMappingAttribute.cs

23 lines
605 B
C#
Raw Permalink Normal View History

2024-11-17 10:31:01 +01:00
namespace Galaeth.Core.Attributes.EntityAnnotation;
/// <summary>
/// Define the database table name for this entity.
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class TableMappingAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="TableMappingAttribute"/> class.
/// </summary>
/// <param name="name">The database table name.</param>
public TableMappingAttribute(string name)
{
Name = name;
}
/// <summary>
/// Database table name.
/// </summary>
public string Name { get; }
}