mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:36:30 +00:00
26 lines
601 B
C#
26 lines
601 B
C#
using Azaion.Repository.Entities;
|
|
using LinqToDB.Mapping;
|
|
|
|
namespace Azaion.Repository;
|
|
|
|
public static class AzaionDbSqlSchemaHolder
|
|
{
|
|
public static readonly MappingSchema MappingSchema;
|
|
|
|
static AzaionDbSqlSchemaHolder()
|
|
{
|
|
MappingSchema = new MappingSchema();
|
|
var builder = new FluentMappingBuilder(MappingSchema);
|
|
|
|
builder.Entity<User>()
|
|
.HasIdentity(x => x.Id);
|
|
|
|
builder.Entity<Media>()
|
|
.HasIdentity(x => x.Id);
|
|
|
|
builder.Entity<Annotation>()
|
|
.HasIdentity(x => x.Id);
|
|
|
|
builder.Build();
|
|
}
|
|
} |