53 lines
1.7 KiB
C#
53 lines
1.7 KiB
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.Data.Entity;
|
|
using Microsoft.Data.Entity.Metadata;
|
|
using Microsoft.Data.Entity.Relational.Migrations;
|
|
using Microsoft.Data.Entity.Relational.Migrations.Builders;
|
|
using Microsoft.Data.Entity.Relational.Migrations.Infrastructure;
|
|
using System;
|
|
|
|
namespace Microsoft.AspNet.Diagnostics.Entity.Tests
|
|
{
|
|
public class BloggingContextWithPendingModelChanges : BloggingContext
|
|
{
|
|
public BloggingContextWithPendingModelChanges(IServiceProvider provider, DbContextOptions options)
|
|
: base(provider, options)
|
|
{ }
|
|
|
|
[ContextType(typeof(BloggingContextWithPendingModelChanges))]
|
|
public class BloggingModelSnapshot : ModelSnapshot
|
|
{
|
|
public override IModel Model
|
|
{
|
|
get { return new BasicModelBuilder().Model; }
|
|
}
|
|
}
|
|
|
|
[ContextType(typeof(BloggingContextWithPendingModelChanges))]
|
|
public partial class MigrationOne : Migration, IMigrationMetadata
|
|
{
|
|
string IMigrationMetadata.MigrationId
|
|
{
|
|
get { return "111111111111111_MigrationOne"; }
|
|
}
|
|
|
|
string IMigrationMetadata.ProductVersion
|
|
{
|
|
get { return CurrentProductVersion; }
|
|
}
|
|
|
|
IModel IMigrationMetadata.TargetModel
|
|
{
|
|
get { return new BasicModelBuilder().Model; }
|
|
}
|
|
|
|
public override void Up(MigrationBuilder migrationBuilder)
|
|
{ }
|
|
|
|
public override void Down(MigrationBuilder migrationBuilder)
|
|
{ }
|
|
}
|
|
}
|
|
} |