blob: cbf38f76842294a21165c8d5f5a4376e83b82a3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
namespace CrupestApi.Commons.Crud;
public interface IColumnMetadata
{
}
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class ColumnAttribute : Attribute, IColumnMetadata
{
// if null, use the property name.
public string? DatabaseName { get; set; }
// default false.
public bool NonNullable { get; set; }
// default false
public bool IsPrimaryKey { get; set; }
public bool IsAutoIncrement { get; set; }
}
|