Skip to content

Commit

Permalink
Design: Allow unspecified project language
Browse files Browse the repository at this point in the history
This can happen when using an older tool with a newer runtime.

Fixes #11075
  • Loading branch information
bricelam committed Mar 26, 2018
1 parent c7d8f26 commit 86aa1c2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/EFCore.Design/Design/Internal/DatabaseOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ public DatabaseOperations(
[NotNull] Assembly startupAssembly,
[NotNull] string projectDir,
[NotNull] string rootNamespace,
[NotNull] string language,
[CanBeNull] string language,
[NotNull] string[] args)
{
Check.NotNull(reporter, nameof(reporter));
Check.NotNull(startupAssembly, nameof(startupAssembly));
Check.NotNull(projectDir, nameof(projectDir));
Check.NotNull(rootNamespace, nameof(rootNamespace));
Check.NotNull(language, nameof(language));
Check.NotNull(args, nameof(args));

_reporter = reporter;
Expand Down
3 changes: 1 addition & 2 deletions src/EFCore.Design/Design/Internal/MigrationsOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@ public MigrationsOperations(
[NotNull] Assembly startupAssembly,
[NotNull] string projectDir,
[NotNull] string rootNamespace,
[NotNull] string language,
[CanBeNull] string language,
[NotNull] string[] args)
{
Check.NotNull(reporter, nameof(reporter));
Check.NotNull(assembly, nameof(assembly));
Check.NotNull(startupAssembly, nameof(startupAssembly));
Check.NotNull(projectDir, nameof(projectDir));
Check.NotNull(rootNamespace, nameof(rootNamespace));
Check.NotNull(language, nameof(language));
Check.NotNull(args, nameof(args));

_reporter = reporter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ScaffoldedModel ScaffoldModel(
[NotNull] IEnumerable<string> tables,
[NotNull] IEnumerable<string> schemas,
[NotNull] string @namespace,
[NotNull] string language,
[CanBeNull] string language,
[CanBeNull] string contextDir,
[CanBeNull] string contextName,
[NotNull] ModelReverseEngineerOptions modelOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public virtual ScaffoldedModel ScaffoldModel(
Check.NotNull(tables, nameof(tables));
Check.NotNull(schemas, nameof(schemas));
Check.NotEmpty(@namespace, nameof(@namespace));
Check.NotNull(language, nameof(language));
Check.NotNull(modelOptions, nameof(modelOptions));
Check.NotNull(codeOptions, nameof(codeOptions));

Expand Down

0 comments on commit 86aa1c2

Please sign in to comment.