-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #306 from PomeloFoundation/dev
Upgrade to 2.0.0-preview2
- Loading branch information
Showing
257 changed files
with
5,608 additions
and
4,556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -251,3 +251,6 @@ paket-files/ | |
# JetBrains Rider | ||
.idea/ | ||
*.sln.iml | ||
|
||
# vscode | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<!--<add key="aspnetcore-dev" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json" />--> | ||
<add key="Pomelo" value="https://www.myget.org/F/pomelo/api/v3/index.json" /> | ||
<add key="nuget.org" value="https://www.nuget.org/api/v2" /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
</packageSources> | ||
</configuration> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/EFCore.MySql/Design/Internal/MySqlAnnotationCodeGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) Pomelo Foundation. All rights reserved. | ||
// Licensed under the MIT. See LICENSE in the project root for license information. | ||
|
||
using JetBrains.Annotations; | ||
using Microsoft.EntityFrameworkCore.Infrastructure; | ||
using Microsoft.EntityFrameworkCore.Metadata; | ||
using Microsoft.EntityFrameworkCore.Utilities; | ||
|
||
namespace Microsoft.EntityFrameworkCore.Design.Internal | ||
{ | ||
public class MySqlAnnotationCodeGenerator : AnnotationCodeGenerator | ||
{ | ||
public MySqlAnnotationCodeGenerator([NotNull] AnnotationCodeGeneratorDependencies dependencies) | ||
: base(dependencies) | ||
{ | ||
} | ||
|
||
public override bool IsHandledByConvention(IModel model, IAnnotation annotation) | ||
{ | ||
return true; | ||
} | ||
|
||
public override string GenerateFluentApi(IIndex index, IAnnotation annotation, string language) | ||
{ | ||
Check.NotNull(index, nameof(index)); | ||
Check.NotNull(annotation, nameof(annotation)); | ||
Check.NotNull(language, nameof(language)); | ||
|
||
return null; | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/EFCore.MySql/Design/Internal/MySqlDesignTimeServices.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Pomelo Foundation. All rights reserved. | ||
// Licensed under the MIT. See LICENSE in the project root for license information. | ||
|
||
using Microsoft.EntityFrameworkCore.Scaffolding; | ||
using Microsoft.EntityFrameworkCore.Scaffolding.Internal; | ||
using Microsoft.EntityFrameworkCore.Storage; | ||
using Microsoft.EntityFrameworkCore.Storage.Internal; | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace Microsoft.EntityFrameworkCore.Design.Internal | ||
{ | ||
public class MySqlDesignTimeServices : IDesignTimeServices | ||
{ | ||
public void ConfigureDesignTimeServices(IServiceCollection serviceCollection) | ||
{ | ||
serviceCollection | ||
.AddSingleton<IScaffoldingProviderCodeGenerator, MySqlScaffoldingCodeGenerator>() | ||
.AddSingleton<IDatabaseModelFactory, MySqlDatabaseModelFactory>() | ||
.AddSingleton<IAnnotationCodeGenerator, MySqlAnnotationCodeGenerator>() | ||
.AddSingleton<IRelationalTypeMapper, MySqlTypeMapper>(); | ||
} | ||
} | ||
} |
Oops, something went wrong.