mirror of
https://github.com/farcasclaudiu/LanBackup.git
synced 2026-06-22 09:01:11 +03:00
51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using LanBackup.DataCore;
|
|
|
|
namespace LanBackup.DataCore.Migrations
|
|
{
|
|
[DbContext(typeof(BackupsContext))]
|
|
[Migration("20170106103933_InitMigration")]
|
|
partial class InitMigration
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
modelBuilder.Entity("LanBackup.ModelsCore.BackupConfiguration", b =>
|
|
{
|
|
b.Property<string>("ID")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("ClientIP")
|
|
.IsRequired();
|
|
|
|
b.Property<string>("DestLanFolder");
|
|
|
|
b.Property<string>("DestPass");
|
|
|
|
b.Property<string>("DestUser");
|
|
|
|
b.Property<byte[]>("RowVersion")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAddOrUpdate();
|
|
|
|
b.Property<string>("SrcFolder");
|
|
|
|
b.Property<string>("SrcPass");
|
|
|
|
b.Property<string>("SrcUser");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("Backups");
|
|
});
|
|
}
|
|
}
|
|
}
|