blob: c15334c31e7932acc88b7244c4d5d90a2bda6098 (
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(OnlyGenerated = 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";
}
|