forked from dotnet/efcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIOperationExecutor.cs
More file actions
33 lines (29 loc) · 1.28 KB
/
Copy pathIOperationExecutor.cs
File metadata and controls
33 lines (29 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections;
using System.Collections.Generic;
namespace Microsoft.EntityFrameworkCore.Tools
{
internal interface IOperationExecutor : IDisposable
{
IDictionary AddMigration(string name, string outputDir, string contextType);
IEnumerable<string> RemoveMigration(string contextType, bool force);
IEnumerable<IDictionary> GetMigrations(string contextType);
void DropDatabase(string contextType);
IDictionary GetContextInfo(string name);
string GetContextType(string name);
void UpdateDatabase(string migration, string contextType);
IEnumerable<IDictionary> GetContextTypes();
IEnumerable<string> ScaffoldContext(
string provider,
string connectionString,
string outputDir,
string dbContextClassName,
IEnumerable<string> schemaFilters,
IEnumerable<string> tableFilters,
bool useDataAnnotations,
bool overwriteFiles);
string ScriptMigration(string fromMigration, string toMigration, bool idempotent, string contextType);
}
}