blob: 7cc19ed9301596631fb6fe118c1611d436261a9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
namespace CrupestApi.Commons.Crud.Tests;
public class TestEntity
{
[Column(ActAsKey = true, NotNull = true)]
public string Name { get; set; } = default!;
[Column(NotNull = true)]
public int Age { get; set; }
[Column]
public float? Height { get; set; }
[Column(Generated = true, NotNull = true, NoUpdate = true)]
public string Secret { get; set; } = default!;
public static string SecretDefaultValueGenerator()
{
return "secret";
}
public string NonColumn { get; set; } = "Not A Column";
}
|