-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distinguishing Foreign Keys with same name on different tables (and same
for indexes). Also guarding against bad metadata and adding warning messages.
- Loading branch information
Showing
6 changed files
with
267 additions
and
59 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
16 changes: 16 additions & 0 deletions
16
src/EntityFramework.MicrosoftSqlServer.Design/Internal/SqlDataReaderExtensions.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,16 @@ | ||
// 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.Data.SqlClient; | ||
using JetBrains.Annotations; | ||
|
||
namespace Microsoft.Data.Entity.Scaffolding.Internal | ||
{ | ||
public static class SqlDataReaderExtensions | ||
{ | ||
public static string GetStringOrNull([NotNull] this SqlDataReader reader, int ordinal) | ||
{ | ||
return reader.IsDBNull(ordinal) ? null : reader.GetString(ordinal); | ||
} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
src/EntityFramework.MicrosoftSqlServer.Design/Properties/SqlServerDesignStrings.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.